FloatingPointConvertionΒΆ
flopak.spad line 339 [edit on github]
This package implements convertion of arbitarary precision floating point numbers to strings.
- convert_mr: (Record(mantissa: Integer, exponent: Integer), Integer, Record(default?: Boolean, trim_trailing_zeros?: Boolean, out_mode: String, spacing: Integer, separator: Character)) -> String
convert_mr(f, d, mr)
performs convertion specified bymr
.
- convert_to_decimal: (Record(mantissa: Integer, exponent: Integer), Integer) -> Record(mantissa: Integer, exponent: Integer)
convert_to_decimal(f, d)
convertsf
to base10
rounding tod
decimal digits
- fixed_mr: (Record(mantissa: Integer, exponent: Integer), Integer, Record(default?: Boolean, trim_trailing_zeros?: Boolean, out_mode: String, spacing: Integer, separator: Character)) -> String
fixed_mr(f, d, mr)
is the fixed convertion.