Registry / Library

library · v0.1.1
Cash Rounding
Round a nonnegative amount to the nearest cash increment, resolving exact halves upwards.
Use Cash Rounding
use vendor::cash_rounding::cash_rounding;
Run the example
nest demo cash_rounding@0.1.1
blyxc native-run cash_rounding-demo/main.blyx
Example source and expected output
use vendor::cash_rounding::cash_rounding;
fn main() {
println!(cash_rounding(103,5));
}
Expected output
105
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | f589bb38f5 | 09f0a9732112cc1ba36a567c1ff744923003695981064e0534a7730d642060b3 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 913546d11463f34644c9f0f25b4be39d9318fff43adffb56a47992c6317597b0 |