Method: Flt::FormatBase#to_text

Defined in:
lib/float-formats/classes.rb

#to_text(fmt = ) ⇒ Object

from/to integral_sign_significand_exponent



126
127
128
129
130
131
# File 'lib/float-formats/classes.rb', line 126

def to_text(fmt = Numerals::Format[])
  if infinite?
    fmt = fmt[symbols: [show_plus: true]]
  end
  fmt.write(self)
end