| Crates.io | big-bytes |
| lib.rs | big-bytes |
| version | 1.0.0 |
| created_at | 2019-10-05 21:43:51.905269+00 |
| updated_at | 2019-10-05 21:43:51.905269+00 |
| description | Converts a number to the largest possible multiple of the byte unit |
| homepage | |
| repository | https://github.com/spenserblack/big-bytes-rs |
| max_upload_size | |
| id | 170232 |
| size | 19,036 |
Converts a number to the largest possible multiple of the byte unit
use big_bytes::BigByte;
let bytes = 2.456 * 1024_f32.powi(3);
assert_eq!("2.46 GiB", bytes.big_byte(2));