macro_rules! n_pib_bytes {
    () => { ... };
    ( $x:expr ) => { ... };
    ( $x:expr, $t:ty ) => { ... };
}
Expand description

Convert n PiB to bytes.

Examples

#[macro_use] extern crate byte_unit;

let result = n_pib_bytes!(4);

assert_eq!(result, 4503599627370496u128);
#[macro_use] extern crate byte_unit;

let result = n_pib_bytes!(2.5, f64);

assert_eq!(result, 2814749767106560u128);