Struct scientific::Scientific [−][src]
pub struct Scientific { /* fields omitted */ }
Expand description
Arbitrary precision scientific number
See the module-level documentation for more details.
Implementations
pub fn from_raw_parts(
negative: bool,
mantissa: Vec<u8>,
exponent: isize
) -> Result<Scientific, ConversionError>
round to nearest away from zero
0.4, -0.4 => 0.0
0.5, 0.6 => 1.0
-0.5, -0.6 => -1.0
Returns true if self has a positive sign, this excludes 0.
Returns true if self has a negative sign, this excludes 0.
Trait Implementations
Performs the conversion.
Performs the conversion.
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
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more