round
Module Export
number |> number => number
Rounds a number to the given decimal.
Remarks
Note that midpoints are handled using “Bankers Rounding”, e.g. midpoints are rounded to nearest event number. This is standard practice in finance and statistics. To round midpoints using the more familiar method away from zero, see roundAwayFromZero.
Examples
import 'math'
from 3.3333 round 2
// Returns:3.33