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 by mr.

convert_to_decimal: (Record(mantissa: Integer, exponent: Integer), Integer) -> Record(mantissa: Integer, exponent: Integer)

convert_to_decimal(f, d) converts f to base 10 rounding to d 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.

floating_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 floating convertion.

general_mr: (Record(mantissa: Integer, exponent: Integer), Integer, Record(default?: Boolean, trim_trailing_zeros?: Boolean, out_mode: String, spacing: Integer, separator: Character)) -> String

general_mr(f, d, mr) is the general convertion.