Macro byte_unit::n_tib_bytes
source · macro_rules! n_tib_bytes {
() => { ... };
( $x:expr ) => { ... };
( $x:expr, $t:ty ) => { ... };
}
Expand description
Convert n TiB to bytes.
Examples
#[macro_use] extern crate byte_unit;
let result = n_tib_bytes!(4);
assert_eq!(result, 4398046511104u128);
#[macro_use] extern crate byte_unit;
let result = n_tib_bytes!(2.5, f64);
assert_eq!(result, 2748779069440u128);