Macro byte_unit::n_eb_bytes

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

Convert n EB to bytes.

Examples

let result = byte_unit::n_eb_bytes!(4);

assert_eq!(4000000000000000000, result);
let result = byte_unit::n_eb_bytes!(2.5, f64);

assert_eq!(2500000000000000000, result);