class BSON::Decimal128

def from_string(string)

Other tags:
    Since: - 4.2.0

Returns:
  • (BSON::Decimal128) - The new decimal128.

Raises:
  • (BSON::Error:InvalidDecimal128String) - If the provided string is invalid.

Parameters:
  • string (String) -- The string to parse.

Other tags:
    Example: Create a Decimal128 from a string. -
def from_string(string)
  from_bits(*Builder::FromString.new(string).bits)
end