Registry / Library

library · v0.1.1
Tier Units
Count units charged inside one progressive pricing tier with excluded lower and included upper cumulative boundaries.
Use Tier Units
use vendor::tier_units::tier_units;
Run the example
nest demo tier_units@0.1.1
blyxc native-run tier_units-demo/main.blyx
Example source and expected output
use vendor::tier_units::tier_units;
fn main() {
println!(tier_units(25,10,20));
}
Expected output
10
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 9c4b50dfee | 5182430d487ec0a4582a1ec3015f72290361d1dd718ae6afccd5a752c82e6c08 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 07d91d408860835cea78a8a6c4e652b6a7fb54ecee860e0d7f28c087630ec13f |