Blyx Nest Blyx language
Registry / Library
library · v0.1.1

Cash Rounding

Round a nonnegative amount to the nearest cash increment, resolving exact halves upwards.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filesf589bb38f509f0a9732112cc1ba36a567c1ff744923003695981064e0534a7730d642060b3
0.1.0Download ZIP · Browse files6349f23784913546d11463f34644c9f0f25b4be39d9318fff43adffb56a47992c6317597b0