big-bytes

Crates.iobig-bytes
lib.rsbig-bytes
version1.0.0
sourcesrc
created_at2019-10-05 21:43:51.905269
updated_at2019-10-05 21:43:51.905269
descriptionConverts a number to the largest possible multiple of the byte unit
homepage
repositoryhttps://github.com/spenserblack/big-bytes-rs
max_upload_size
id170232
size19,036
Spenser Black (spenserblack)

documentation

README

big-bytes

GitHub Release Date

Converts a number to the largest possible multiple of the byte unit

Example

use big_bytes::BigByte;

let bytes = 2.456 * 1024_f32.powi(3);

assert_eq!("2.46 GiB", bytes.big_byte(2));
Commit count: 18

cargo fmt