Enum frounding::RoundingMode [] [src]

pub enum RoundingMode {
    Default,
    Upward,
    Downward,
    Nearest,
    ToZero,
}

Rounding direction

Variants

The default rounding when starting the program.

Round upward ( toward positive infinity +inf )

Round downward ( toward negative infinity -inf )

Round to nearest

Round tward zero ( truncate )

Trait Implementations

impl Debug for RoundingMode
[src]

Formats the value using the given formatter.

impl Clone for RoundingMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for RoundingMode
[src]

impl Display for RoundingMode
[src]

Formats the value using the given formatter. Read more