Testing BigNumber against Number
toExponential
[ decimal places ]
toFixed
[ decimal places ]
toPrecision
[ significant digits ]
round
[ decimal places [ , rounding mode ] ]
toFraction
[ maximum denominator ]
sqrt
UP
Rounds away from zero
DOWN
Rounds towards zero
CEIL
Rounds towards +Infinity
FLOOR
Rounds towards -Infinity
HALF_UP
Rounds towards nearest neighbour. If equidistant, rounds up
HALF_DOWN
Rounds towards nearest neighbour. If equidistant, rounds down
HALF_EVEN
Rounds towards nearest neighbour. If equidistant, rounds towards even neighbour
HALF_CEIL
Rounds towards nearest neighbour. If equidistant, rounds towards +Infinity
HALF_FLOOR
Rounds towards nearest neighbour. If equidistant, rounds towards -Infinity
Decimal places:
BigNumber ERRORS:
true
false
Input:
BigNumber:
Number: