[−][src]Type Definition ion_c_sys::ION_DECIMAL
type ION_DECIMAL = _ion_decimal;
Implementations
impl ION_DECIMAL
[src]
pub fn try_assign_bigdecimal(&mut self, value: &BigDecimal) -> IonCResult<()>
[src]
Assigns a BigDecimal
into this ION_DECIMAL
.
pub fn try_to_bigdecimal(&mut self) -> IonCResult<BigDecimal>
[src]
Converts this ION_DECIMAL
to a BigDecimal
.
Special decimal values such as NaN and infinity are not supported for conversion.
This implementation borrows mutably, to avoid a copy of the underlying decimal implementation, but does not change the value.
Specifically, this code scales from/to the exponent the value to extract the coefficient.