7 个版本
| 0.1.6 | 2021年10月26日 |
|---|---|
| 0.1.5 | 2021年7月30日 |
| 0.1.4 | 2021年5月16日 |
| 0.1.3 | 2021年4月24日 |
#6 in #percentage
每月 211 次下载
6KB
122 行
百分比
获取任意数字的百分比
use percentage_rs::Percent;
println!("{}", 10 * 50.percent());
lib.rs:
percentage-rs
percentage-rs 获取任意数字的百分比
依赖
~94–320KB