Function: roundHalfAwayFromZero()
roundHalfAwayFromZero(
value):number
Defined in: src/lib/money/index.ts:62
Round half away from zero (symmetric rounding) to the nearest integer.
Math.round rounds .5 toward +Infinity, which is asymmetric for negatives; money
rounding should be symmetric so that, e.g., -0.5 and 0.5 round to -1 and 1.
Parameters
value
number
Returns
number