pub fn binary() -> Self {
        Scales {
            base: 1024,
            units: vec![" ", " ki", " Mi", " Gi", " Ti", " Pi", " Ei", " Zi", " Yi"],
        }
    }
/// Create a binary scale.
///
/// The [binary scale](https://en.wikipedia.org/wiki/Binary_prefix)
/// steps with base `1024`. It is intended for use as a units prefix, so the empty base
/// contains a space.
///
/// # Example
/// ```rust
/// # use numfmt::*;
/// let mut f = Formatter::new().scales(Scales::binary());
/// assert_eq!(f.fmt(1024.0 * 1024.0), "1.0 Mi");
/// assert_eq!(f.fmt(3.14 * 1024.0 * 1024.0), "3.14 Mi");
/// ```
Create a binary scale.
The [binary scale]
steps with base `1024`. It is intended for use as a units prefix, so the empty base
contains a space.
Create a binary scale . The [ binary scale ] steps with base ` 1024 ` . It is intended for use as a units prefix so the empty base contains a space .
pub fn binary() -> Self {
        Scales {
            base: 1024,
            units: vec![" ", " ki", " Mi", " Gi", " Ti", " Pi", " Ei", " Zi", " Yi"],
        }
    }
pub fn binary ( ) -> Self { Scales { base : 1024 , units : vec ! [ " " " " " " " " " " " " " " " " " " ] , } }
Create a binary scale.
Create a binary scale .
example
None
use numfmt::*;
None