NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #2694 most downloaded on crates.io
Fixed-point numbers.
Last release 6 months ago
20 Mar 2026
Release timing varies
gaps range from 2 weeks to 11 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
16 versions withdrawn
withdrawn after publishing
8 years old
84 releases · first in 2018
ParseFixedError implements Error when the new std feature is enabled.
ParseFixedError implements Error when the new std feature is enabled.Casts deprecated in version 0.3.1 of the *az* crate were marked as deprecated.
Fixed
trait:
from_be_bytes, from_le_bytes, from_ne_bytesto_be_bytes, to_le_bytes, to_ne_bytesdiv_euclid_int, rem_euclid_intchecked_div_euclid_int, checked_rem_euclid_intwrapping_div_euclid_int, wrapping_rem_euclid_intoverflowing_div_euclid_int, overflowing_rem_euclid_intOne column per quarter.
Conversions to/from bf16 are now provided when the f16 option is enabled.
bf16 are now provided when the f16 option is
enabled.
const functions: saturating_neg,
saturating_add, saturating_sub, saturating_mul_int, saturating_absBug fix: display of many decimal numbers was panicking in debug mode or including a leading zero in release mode.
Wrapping for convenience, even if they do not
involve wrapping.Bug fix: rounding could produce bad output for Binary, Octal, LowerHex and UpperHex.
Binary, Octal, LowerHex
and UpperHex.
const functions: is_power_of_two, abs,
wrapping_abs, overflowing_absround_to_zero was added.round_ties_to_even and its checked versions were added.The crate now requires rustc version 1.34.0 or later.
Fixed trait.Wrapping now has methods for parsing with wrapping, including an
implementation of FromStr.const functions:
min_value, max_value, from_bits, to_bitscount_ones, count_zeros, leading_zeros, trailing_zeros
rotate_left, rotate_rightwrapping_neg, wrapping_add, wrapping_sub, wrapping_mul_int,
wrapping_shl, wrapping_shroverflowing_neg, overflowing_add, overflowing_sub,
overflowing_mul_int, overflowing_shl, overflowing_shris_positive, is_negativeINT_NBITS and FRAC_NBITS were added.frac module and the LeEqU* traits were moved into
the new types::extra module.The methods from_fixed, to_fixed, from_int, to_int, from_float, and to_float, and their checked versions, were deprecated.
from_num and to_num together with their checked versions
were added to all fixed-point numbers.
from_fixed, to_fixed, from_int, to_int, from_float,
and to_float, and their checked versions, were deprecated.from_num was added to the Wrapping wrapper.All fixed-point types now implement FromStr.
FromStr.
from_str_binary, from_str_octal and from_str_hex were
added.Deprecated methods were removed.
traits module was added, with its traits Fixed, FixedSigned,
FixedUnsigned, FromFixed, ToFixed, LossyFrom and LossyInto.saturating_neg method was added to all fixed-point numbers, and the
saturating_abs method was added to signed fixed-point numbers.consts module was added.signum method now wraps instead of panics in release mode.Int and Float now have no provided methods; the
methods in the old implementation are now provided by FromFixed and
ToFixed.Conversions to/from isize and usize were added.
isize and usize were added.The Wrapping wrapper was added.
Wrapping wrapper was added.Reimplement From for all fixed-point types which can represent the integer 1. This was inadvertently removed in 0.3.0.
From<bool> for all fixed-point types which can represent the
integer 1. This was inadvertently removed in 0.3.0.The methods int_bits and frac_bits were deprecated and replaced by the methods int_nbits and frac_nbits.
to_int is now generic.
Int trait implementation for bool was removed.to_fixed was added.checked_to_fixed, checked_to_int, saturating_to_fixed,
saturating_to_int, wrapping_to_fixed, wrapping_to_int,
overflowing_to_fixed and overflowing_to_int were added.from_fixed, to_fixed, checked_from_fixed,
checked_to_fixed, saturating_from_fixed, saturating_to_fixed,
wrapping_from_fixed, wrapping_to_fixed, overflowing_from_fixed and
overflowing_to_fixed were added to the Int trait.from_fixed, to_fixed, checked_to_fixed,
saturating_to_fixed, wrapping_to_fixed and overflowing_to_fixed were
added to the Float trait.PartialEq and PartialCmp are now implemented for all combinations of
fixed-point numbers and primitive integers.int_bits and frac_bits were deprecated and replaced by the
methods int_nbits and frac_nbits.Bug fix: the from_fixed and from_int methods (and their checked counterparts) could return wrong values for negative values.
from_fixed and from_int methods (and their checked
counterparts) could return wrong values for negative values.
The methods from_f16, from_f32, from_f64, to_f16, to_f32 and to_f64 were deprecated.
from_int was change to accept a generic
parameter.
from_fixed, checked_from_fixed, saturating_from_fixed,
wrapping_from_fixed and overflowing_from_fixed were added.checked_from_int, saturating_from_int,
wrapping_from_int and overflowing_from_int were added.from_float, checked_from_float, saturating_from_float,
wrapping_from_float and overflowing_from_float were added.to_float was added.from_f16, from_f32, from_f64, to_f16, to_f32 and
to_f64 were deprecated.to_int method was fixed to truncate fractional bits as documented for
negative values.ceil, floor, round, checked_ceil, checked_floor,
checked_round, saturating_ceil, saturating_floor, saturating_round,
wrapping_ceil, wrapping_floor, wrapping_round, overflowing_ceil,
overflowing_floor and overflowing_round were added.to_int_ceil, to_int_floor and to_int_round were
deprecated.Optional serde support was added.
Lossless infallible conversions between fixed-point numbers and numeric primitives are now supported using From and Into.
From and Into.
types is available with aliases for all supported fixed-point
numbers.Division is now implemented for FixedI128 and FixedU128.
FixedI128 and FixedU128.The f16 feature was added, and new methods from_f16 and to_f16 were added.
f16 feature was added, and new methods from_f16 and to_f16 were
added.The crate can now be used without the standard library std.
std.
from_f32 and from_f64 were added.is_positive and is_negative were added to signed fixed-point
numbers.Comparisons are now supported between all fixed-point numbers with the same underlying integer type.
int_bits and frac_bits were added.from_int, to_int, to_int_ceil, to_int_floor and
to_int_round were added.int and frac were added.Unsigned constants provided by the *typenum* crate are now used for the number of fractional bits.
Unsigned constants provided by the typenum crate are now used for the
number of fractional bits.
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →