Trait peroxide::util::print::UpperExpWithPlus

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

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

§Example

use peroxide::fuga::*;

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

Provided Methods§

source

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

Implementations on Foreign Types§

source§

impl UpperExpWithPlus for f32

source§

impl UpperExpWithPlus for f64

Implementors§