[src]

Enum std::num::FPCategory

pub enum FPCategory {
    FPNaN,
    FPInfinite,
    FPZero,
    FPSubnormal,
    FPNormal,
}

Used for representing the classification of floating point numbers

Variants

FPNaN

"Not a Number", often obtained by dividing by zero

FPInfinite

Positive or negative infinity

FPZero

Positive or negative zero

FPSubnormal

De-normalized floating point representation (less precise than FPNormal)

FPNormal

A regular floating point number

Trait Implementations

Derived Implementations

impl Show for FPCategory

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for FPCategory

fn eq(&self, __arg_0: &FPCategory) -> bool

fn ne(&self, __arg_0: &FPCategory) -> bool