See the Rust documentation for is_zero for more information.
See the Rust documentation for magnitude_range for more information.
See the Rust documentation for magnitude_range for more information.
See the Rust documentation for nonzero_magnitude_end for more information.
See the Rust documentation for nonzero_magnitude_start for more information.
See the Rust documentation for sign for more information.
Set the sign of the Decimal.
See the Rust documentation for set_sign for more information.
StaticfromConstruct an Decimal from an integer.
See the Rust documentation for Decimal for more information.
StaticfromConstruct an Decimal from an integer.
See the Rust documentation for Decimal for more information.
StaticfromConstruct an Decimal from an float, with a given power of 10 for the lower magnitude
See the Rust documentation for try_from_f64 for more information.
See the Rust documentation for FloatPrecision for more information.
StaticfromConstruct an Decimal from an float, with enough digits to recover the original floating point in IEEE 754 without needing trailing zeros
See the Rust documentation for try_from_f64 for more information.
See the Rust documentation for FloatPrecision for more information.
StaticfromConstruct an Decimal from an float, for a given number of significant digits
See the Rust documentation for try_from_f64 for more information.
See the Rust documentation for FloatPrecision for more information.
StaticfromConstruct an Decimal from a string.
See the Rust documentation for try_from_str for more information.
See the Rust documentation for apply_sign_display for more information.
See the Rust documentation for ceil for more information.
Concatenates other to the end of self.
If successful, other will be set to 0 and a successful status is returned.
If not successful, other will be unchanged and an error is returned.
See the Rust documentation for concatenate_end for more information.
See the Rust documentation for digit_at for more information.
See the Rust documentation for expand for more information.
See the Rust documentation for floor for more information.
Multiply the Decimal by a given power of ten.
See the Rust documentation for multiply_pow10 for more information.
Zero-pad the Decimal on the right to a particular position
See the Rust documentation for pad_end for more information.
Zero-pad the Decimal on the left to a particular position
See the Rust documentation for pad_start for more information.
Round the number at a particular digit position.
This uses half to even rounding, which resolves ties by selecting the nearest even integer to the original value.
See the Rust documentation for round for more information.
See the Rust documentation for round_with_mode for more information.
See the Rust documentation for round_with_mode_and_increment for more information.
Truncate the Decimal on the left to a particular position, deleting digits if necessary. This is useful for, e.g. abbreviating years ("2022" -> "22")
See the Rust documentation for set_max_position for more information.
Format the Decimal as a string.
See the Rust documentation for write_to for more information.
See the Rust documentation for trim_end for more information.
See the Rust documentation for trim_end_if_integer for more information.
See the Rust documentation for trim_start for more information.
See the Rust documentation for trunc for more information.
See the Rust documentation for
Decimalfor more information.