Type Alias dashu_float::round::Rounded

source ·
pub type Rounded<T> = Approximation<T, Rounding>;
Expand description

A type representing float operation result

If the operation result is inexact, the adjustment from the final rounding will be returned along with the result.

Aliased Type§

enum Rounded<T> {
    Exact(T),
    Inexact(T, Rounding),
}

Variants§

§

Exact(T)

The result is exact, contains the result value

§

Inexact(T, Rounding)

The result is inexact, contains the result value and error