Struct rustc_apfloat::ppc::DoubleFloat [−][src]
pub struct DoubleFloat<F>(F, F);
Tuple Fields
0: F
1: F
Trait Implementations
Performs the +=
operation. Read more
Performs the /=
operation. Read more
impl<F: FloatConvert<IeeeFloat<FallbackS<F>>>> Float for DoubleFloat<F> where
Self: From<IeeeFloat<FallbackS<F>>>,
impl<F: FloatConvert<IeeeFloat<FallbackS<F>>>> Float for DoubleFloat<F> where
Self: From<IeeeFloat<FallbackS<F>>>,
The largest E such that 2E is representable; this matches the definition of IEEE 754. Read more
The smallest E such that 2E is a normalized number; this matches the definition of IEEE 754. Read more
Smallest (by magnitude) finite number. Might be denormalized, which implies a relative loss of precision. Read more
Smallest (by magnitude) normalized finite number.
Bitwise comparison for equality (QNaNs compare equal, 0!=-0).
IEEE-754R isSignMinus: Returns whether the current value is negative. Read more
IEEE-754R isSubnormal(): Returns whether the float is a denormal. Read more
Returns true
if the float is a signaling NaN.
If this value has an exact multiplicative inverse, return it.
Returns the exponent of the internal representation of the Float. Read more
Returns: self * 2exp for integral exponents.
Equivalent to C standard library function ldexp
. Read more
Equivalent to C standard library function with the same name. Read more
Converts a floating point number to an integer according to the rounding mode. In case of an invalid operation exception, deterministic values are returned, namely zero for NaNs and the minimal or maximal value respectively for underflow or overflow. If the rounded value is in range but the floating point number is not the exact integer, the C standard doesn’t require an inexact exception to be raised. IEEE-854 does require it so we do that. Read more
Implements IEEE minNum semantics. Returns the smaller of the 2 arguments if both are not NaN. If either argument is a NaN, returns the other argument. Read more
Implements IEEE maxNum semantics. Returns the larger of the 2 arguments if both are not NaN. If either argument is a NaN, returns the other argument. Read more
IEEE-754R isNormal: Returns whether the current value is normal. Read more
Returns true
if the current value is zero, subnormal, or
normal. Read more
IEEE-754R isInfinite(): Returns whether the float is infinity.
Returns true
if the number has the smallest possible non-zero
magnitude in the current semantics. Read more
Returns true
if the number has the largest possible finite
magnitude in the current semantics. Read more
Returns true
if the number is an exact integer.
Performs the conversion.
impl<F: Float> From<IeeeFloat<FallbackS<F>>> for DoubleFloat<F> where
F: FloatConvert<IeeeFloat<FallbackExtendedS<F>>>,
IeeeFloat<FallbackExtendedS<F>>: FloatConvert<F>,
impl<F: Float> From<IeeeFloat<FallbackS<F>>> for DoubleFloat<F> where
F: FloatConvert<IeeeFloat<FallbackExtendedS<F>>>,
IeeeFloat<FallbackExtendedS<F>>: FloatConvert<F>,
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Performs the *=
operation. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the %=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for DoubleFloat<F> where
F: RefUnwindSafe,
impl<F> Send for DoubleFloat<F> where
F: Send,
impl<F> Sync for DoubleFloat<F> where
F: Sync,
impl<F> Unpin for DoubleFloat<F> where
F: Unpin,
impl<F> UnwindSafe for DoubleFloat<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.