Trait peroxide::util::print::LowerExpWithPlus

source ·
pub trait LowerExpWithPlus: LowerExp {
    // Provided method
    fn fmt_lower_exp(&self, precision: usize) -> String { ... }
}
Expand description

Format float number into lower exponent notation with ‘+’ sign

§Example

use peroxide::fuga::*;

fn main() {
    let x = 123.456;
    assert_eq!(x.fmt_lower_exp(2), "1.23e+2");
}

Provided Methods§

source

fn fmt_lower_exp(&self, precision: usize) -> String

Implementations on Foreign Types§

source§

impl LowerExpWithPlus for f32

source§

impl LowerExpWithPlus for f64

Implementors§