pub fn currency(prefix: &str) -> Result {
        Self::new()
            .separator(',')
            .unwrap()
            .precision(Decimals(2))
            .prefix(prefix)
    }
/// Create a formatter that formats numbers as a currency.
///
/// # Example
/// ```rust
/// # use numfmt::*;
/// let mut f = Formatter::currency("$").unwrap();
/// assert_eq!(f.fmt(12345.6789), "$12,345.67");
/// assert_eq!(f.fmt(1234_f64), "$1,234.0");
/// ```
Create a formatter that formats numbers as a currency.
Create a formatter that formats numbers as a currency .
pub fn currency(prefix: &str) -> Result {
        Self::new()
            .separator(',')
            .unwrap()
            .precision(Decimals(2))
            .prefix(prefix)
    }
pub fn currency ( prefix : & str ) -> Result { Self :: new ( ) . separator ( ',' ) . unwrap ( ) . precision ( Decimals ( 2 ) ) . prefix ( prefix ) }
Create a formatter that formats numbers as a currency.
Create a formatter that formats numbers as a currency .
prefix
&str
prefix
&str
example
None
use numfmt::*;
None