Registry / utility / percentage

percentage

JSON →
library0.1.0rscratesunverified

A crate to calculate percentages, providing simple percentage arithmetic.

# Cargo.toml [dependencies] percentage = "0.1.0"
INSTALL
IMPORT
SIG · PERCENTAGE
P
percentage
utilityrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Percentage
use percentage::Percentage;

Calculates 50% of 200.

use percentage::Percentage; fn main() { let p = Percentage::from(50.0); println!("50% of 200 is {}", p.of(200.0)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
percentage — cargo add percentage · libregistry