BigFloat.prototype.toFixed

Returns a string representation of the BigFloat rounded to the specified number of digits after the decimal point.

Syntax

toFixed(digits, roundingMode?, radix?)

Parameters

Return value

A string representing the value.

Examples

123.4567l.toFixed(1)
"123.5"
123.4567l.toFixed(1, BigFloatEnv.RNDD)
"123.4"
65535l.toFixed(2, BigFloatEnv.RNDNA, 16)
"ffff.00"