math.round-div
Integer division with an explicit rounding mode, for money arithmetic that must not drift.
round_div in Python
1.0.0
py rs ts
14 tests
math.round-div-big
Divide two integers of any size with an explicit rounding mode, on decimal strings, for exact money sums past 2^53.
round_div_big in Python
1.0.0
py rs ts
21 tests
math.round-float
Round a float half away from zero to 0-12 decimal places, identically in TypeScript, Python and Rust.
round_float in Python
1.0.0
py rs ts
22 tests
retail.price-rounding
Snap a price to a price point: charm pricing (.99, .95), nearest 5p or 10p, rounding up, down or to nearest.
round_price in Python
1.0.0
py rs ts
25 tests
time.round-to-increment
Round a duration in minutes to a billing increment such as 6 or 15 minutes, up, down or to nearest.
round_to_increment in Python
1.0.0
py rs ts
18 tests