class BSON::Decimal128::Builder::ToString

def string

Other tags:
    Since: - 4.2.0

Other tags:
    Note: - The returned string may be frozen.

Returns:
  • (String) - The string representing the decimal128 object.

Other tags:
    Example: Get a string representing the decimal128. -
def string
  return NAN_STRING if nan?
  str = infinity? ? INFINITY_STRING : create_string
  negative? ? "-#{str}" : str
end