What this package is like to depend on
Last release 5 months ago
20 Mar 2026
Release timing varies
gaps range from 2 weeks to 11 months
Nearly every release is documented
notes for 65 of 67 stable releases
16 versions withdrawn
withdrawn after publishing
8 years old
84 releases · first in 2018
2 releases in the last 12 months
see the full history below
Release timeline
84 releases · Aug 2018 to Mar 2026Releases
latest 60 of 84-
2.0.0-alpha.28.025 Jul 2024 pre-releaseNothing published for this version
-
2.0.0-alpha.27.027 Mar 2024 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.26.006 Mar 2024 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.25.106 Feb 2024 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.1305 Feb 2024 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.1219 Sep 2023 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.1114 Mar 2023 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.1006 Feb 2023 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.925 Jan 2023 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.824 Dec 2022 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.708 Nov 2022 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.629 Aug 2022 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.519 Aug 2022 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.403 Aug 2022 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.325 Jul 2022 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.204 Mar 2022 pre-release withdrawnNothing published for this version
-
2.0.0-alpha.126 Feb 2022 pre-release withdrawnNothing published for this version
-
1.31.020 Mar 2026Release notes
Open source →- The crate now requires rustc version 1.93.0 or later.
- The
unchecked_negmethod was added to all signed fixed-point numbers and to theFixedSignedtrait. - The following methods were added to all fixed-point numbers and to the
Fixedtrait:
- The
- The crate now requires rustc version 1.93.0 or later.
-
1.30.020 Jan 2026Release notes
Open source →- The crate now requires rustc version 1.85.0 or later.
- All methods starting with
unwrapped_were renamed to start withstrict_. The old method names are deprecated. - The
Unwrappedwrapper was renamed toStrict. The old name is deprecated. - Bug fix: the
compat-readonly-staticoptional feature was added to fix an issue on some platforms where statics are readonly (issue 74, merge request 14). - Bug fix: some numbers were being formatted incorrectly when using a defined precision (merge request 15).
- The [az crate] dependency was updated to version 1.3.
- The new
defmtoptional feature was added to support logging using the [defmt crate] (issue 70). - For the experimental feature
num-traits, the following traits were implemented for all fixed-point numbers:
- All methods starting with
- The crate now requires rustc version 1.85.0 or later.
-
1.29.026 Feb 2025Release notes
Open source →- The crate now requires rustc version 1.83.0 or later.
- The following methods were added to all fixed-point numbers, to the
Fixedtrait, and to theSaturating,WrappingandUnwrappedwrappers:unbounded_shl,unbounded_shrfrom_ascii,from_ascii_binary,from_ascii_octal,from_ascii_hexsaturating_from_ascii,saturating_from_ascii_binary,saturating_from_ascii_octal,saturating_from_ascii_hexwrapping_from_ascii,wrapping_from_ascii_binary,wrapping_from_ascii_octal,wrapping_from_ascii_hexunwrapped_from_ascii,unwrapped_from_ascii_binary,unwrapped_from_ascii_octal,unwrapped_from_ascii_hexoverflowing_from_ascii,overflowing_from_ascii_binary,overflowing_from_ascii_octal,overflowing_from_ascii_hex
- The
cast_unsignedmethod was added to all signed fixed-point numbers, to theirSaturating,WrappingandUnwrappedwrappers, and to theFixedtrait. - The
cast_signedmethod was added to all unsigned fixed-point numbers, to theirSaturating,WrappingandUnwrappedwrappers, and to theFixedtrait. - The following methods are now usable in constant context:
- Now
ParseFixedErrorimplements [Error] even when thestdoptional feature is disabled.
- The following methods were added to all fixed-point numbers, to the
- The crate now requires rustc version 1.83.0 or later.
-
1.28.025 Jul 2024Release notes
Open source →- The crate now requires rustc version 1.79.0 or later.
- The following methods were added to all fixed-point numbers and to the
Fixedtrait: - For all fixed-point numbers and the
Fixedtrait, the following methods were renamed. The old method names are deprecated.round_ties_to_evenrenamed toround_ties_evenchecked_round_ties_to_evenrenamed tochecked_round_ties_evensaturating_round_ties_to_evenrenamed tosaturating_round_ties_evenwrapping_round_ties_to_evenrenamed towrapping_round_ties_evenunwrapped_round_ties_to_evenrenamed tounwrapped_round_ties_evenoverflowing_round_ties_to_evenrenamed tooverflowing_round_ties_even
- The following constants were added to the
constsmodule and as associated constants to fixed-point types: - The experimental feature
nightly-floatwas added. - For the experimental feature
num-traits, the following traits were implemented for all fixed-point numbers:
- The following methods were added to all fixed-point numbers and to the
- The crate now requires rustc version 1.79.0 or later.
-
1.27.027 Mar 2024Release notes
Open source → -
1.26.006 Mar 2024Release notes
Open source →- The
sqrtmethod was added to all fixed-point numbers, to theFixedtrait, and to theSaturating,WrappingandUnwrappedwrappers.- The
checked_sqrtmethod was added to all fixed-point numbers and to theFixedtrait.
- The
- The
-
1.25.106 Feb 2024Release notes
Open source →- Bug fix: formatting numbers with [
LowerExp] and [UpperExp] was producing incorrect output when rounding incremented a zero in the middle of a string, for exampleformat!("{:.2e}", I16F16::lit("9.099")).
- Bug fix: formatting numbers with [
-
1.25.005 Feb 2024Release notes
Open source →- Bug fix: formatting numbers with [
LowerExp] and [UpperExp] was producing incorrect output for very small numbers, for exampleformat!("{:e}", I16F16::DELTA).- Bug fix: formatting numbers with [
LowerExp] and [UpperExp] was panicking for some cases of positive exponents and small precision, for exampleformat!("{:.1e}", I16F16::from_num(1001)). - Bug fix: formatting numbers with [
LowerExp] and [UpperExp] was producing incorrect output when rounding adds a more significant digit, for exampleformat!("{:.1e}", I16F16::lit("0.999")). - The experimental
borshfeature was promoted to an optional feature, and the optional [borsh crate] dependency was updated to version 1.0.
- Bug fix: formatting numbers with [
- Bug fix: formatting numbers with [
-
1.24.019 Sep 2023Release notes
Open source →- The crate now requires rustc version 1.71.0 or later.
- The
saturating_div_intmethod was added to all fixed-point numbers and to theFixedtrait. - The
Saturatingwrapper was added.
- The
- The crate now requires rustc version 1.71.0 or later.
-
1.23.114 Mar 2023Release notes
Open source →- Bug fix: comparison of signed and unsigned numbers where the signed number
was wider than the unsigned number was truncating bits from the signed
number (issue 57).
- The [half crate] dependency is now satisfied by version 1.8 as well as [version 2][half-2].
- Bug fix: comparison of signed and unsigned numbers where the signed number
was wider than the unsigned number was truncating bits from the signed
number (issue 57).
-
1.23.006 Feb 2023Release notes
Open source →- String parsing of binary, octal and hexadecimal strings now supports base-2
exponents starting with the separator “
p” or “P”.- Bug fix:
int_log10,int_log,checked_int_log10andchecked_int_logwere panicking or returning incorrect values for fixed-point numbers with no integer bits.
- Bug fix:
- String parsing of binary, octal and hexadecimal strings now supports base-2
exponents starting with the separator “
-
1.22.126 Jan 2023Release notes
Open source →- The errors from the [
lit][f-l-1-22] method have been improved.- The
track_callerattribute is now applied to many more inline functions that can panic.
- The
- The errors from the [
-
1.22.025 Jan 2023Release notes
Open source →- String parsing now supports an optional exponent for all supported radices.
- The
litmethod was added to all fixed-point numbers. This is useful to write fixed-point numbers literally in code and also works in constant context. - All fixed-point numbers now implement [
LowerExp] and [UpperExp]. - The
FixedandFixedBitstraits now have the added supertraits [Binary], [Octal], [LowerHex], [UpperHex], [LowerExp] and [UpperExp]. - The
WrappingandUnwrappedwrappers now implement [Binary], [Octal], [LowerHex], [UpperHex], [LowerExp] and [UpperExp]. - The implementation of [
Debug] for fixed-point numbers now has more relaxed constraints on the fractional bits generic parameter: nowFraconly needs to implementUnsigned.
- The
- String parsing now supports an optional exponent for all supported radices.
-
1.21.024 Dec 2022Release notes
Open source →- Comparisons involving fixed-point numbers now have more relaxed constraints
on the fractional bits generic parameter: now
Fraconly needs to implementUnsigned.
- Comparisons involving fixed-point numbers now have more relaxed constraints
on the fractional bits generic parameter: now
-
1.20.008 Nov 2022Release notes
Open source →- The
TRY_ONEassociated constant was added to theFixedtrait.- The
TRY_NEG_ONEassociated constant was added to theFixedSignedtrait. - The
const_from_fixedandconst_from_intmethods were added to all fixed-point numbers. - The
const_fixed_from_intmacro is now deprecated. - The following associated constants were added to the
F128struct: F128now implements [From] for conversions from [f64], [f32],f16andbf16.- The <code>fixed::f128::consts</code>
module was added with
F128basic mathematical constants.
- The
- The
-
1.19.029 Aug 2022Release notes
Open source →- Bug fix: comparison of and conversion from subnormal floating-point numbers
to fixed-point numbers were off by a factor of 2.
- The following associated constants were added to the
FixedBitstrait: FixedEquivis now a supertrait of theFixedBitstrait.FixedBitsnow has more supertraits from the [num-traits crate] if thenum-traitsexperimental feature is enabled.
- The following associated constants were added to the
- Bug fix: comparison of and conversion from subnormal floating-point numbers
to fixed-point numbers were off by a factor of 2.
-
1.18.019 Aug 2022Release notes
Open source →- Bug fix: checked division methods were panicking when dividing
MINby <code>-DELTA</code> for fixed-point numbers with zero integer bits, that is when all bits are fractional bits (issue 51).- The following methods were added to all fixed-point numbers, to the
Fixedtrait, and to theWrappingandUnwrappedwrappers: - The
F128struct was added to replace theF128Bitsstruct which is now deprecated.F128has standard floating-point ordering and various classification methods and associated constants. - The
from_str_decmethod was added to theUnwrappedwrapper. - The
Contiguoustrait from the [bytemuck crate] was implemented for all fixed-point numbers, added as a supertrait to theFixedtrait, and implemented for theWrappingandUnwrappedwrappers.
- The following methods were added to all fixed-point numbers, to the
- Bug fix: checked division methods were panicking when dividing
-
1.17.003 Aug 2022Release notes
Open source →- The [half crate] dependency was updated to version 2.
- The inherent
from_strmethod was added as aconstfunction to all fixed-point numbers so that it can be use in constant context. - The following methods are now
constfunctions:saturating_from_str,wrapping_from_str,overflowing_from_strfrom_str_binary,saturating_from_str_binary,wrapping_from_str_binary,overflowing_from_str_binaryfrom_str_octal,saturating_from_str_octal,wrapping_from_str_octal,overflowing_from_str_octalfrom_str_hex,saturating_from_str_hex,wrapping_from_str_hex,overflowing_from_str_hexchecked_div,saturating_div,wrapping_div,unwrapped_div,overflowing_divrecip,checked_recip,saturating_recip,wrapping_recip,unwrapped_recip,overflowing_recipchecked_rem_int,unwrapped_rem_intdiv_euclid,checked_div_euclid,saturating_div_euclid,wrapping_div_euclid,unwrapped_div_euclid,overflowing_div_eucliddiv_euclid_int,checked_div_euclid_int,saturating_div_euclid_int,wrapping_div_euclid_int,unwrapped_div_euclid_int,overflowing_div_euclid_intrem_euclid_int,checked_rem_euclid_int,saturating_rem_euclid_int,wrapping_rem_euclid_int,unwrapped_rem_euclid_int,overflowing_rem_euclid_intlerp,checked_lerp,saturating_lerp,wrapping_lerp,unwrapped_lerp,overflowing_lerpinv_lerp,checked_inv_lerp,saturating_inv_lerp,wrapping_inv_lerp,unwrapped_inv_lerp,overflowing_inv_lerp
- The following methods were added to all fixed-point numbers and to the
Fixedtrait: - Bug fix: The following methods were not panicking on all errors as required for
the
Unwrappedwrapper:- <code><Unwrapped<F> as [FromStr][
FromStr]>::[from_str][FromStr::from_str]</code> - <code>Unwrapped<F>::from_str_binary</code>
- <code>Unwrapped<F>::from_str_octal</code>
- <code>Unwrapped<F>::from_str_hex</code>
- <code><Unwrapped<F> as [FromStr][
- The inherent
- The [half crate] dependency was updated to version 2.
-
1.16.122 Jul 2022 -
1.16.030 Jun 2022Release notes
Open source →- The crate now requires rustc version 1.61.0 or later.
- The
NEG_ONEconstant was added to all signed fixed-point numbers that can represent the value −1. - The
add_prodmethod was added to all fixed-point numbers, to theFixedtrait, and to theWrappingandUnwrappedwrappers. - The following methods were added to all fixed-point numbers and to the
Fixedtrait: - The following methods are now
constfunctions:int,frac,round_to_zeroceil,checked_ceil,saturating_ceil,wrapping_ceil,unwrapped_ceil,overflowing_ceilfloor,checked_floor,saturating_floor,wrapping_floor,unwrapped_floor,overflowing_floorround,checked_round,saturating_round,wrapping_round,unwrapped_round,overflowing_roundround_ties_to_even,checked_round_ties_to_even,saturating_round_ties_to_even,wrapping_round_ties_to_even,unwrapped_round_ties_to_even,overflowing_round_ties_to_evenint_log2,checked_int_log2,int_log10,checked_int_log2wide_mul,wide_mul_unsigned,wide_mul_signedwide_div,wide_sdiv,wide_div_unsigned,wide_sdiv_signedchecked_mul,saturating_mul,wrapping_mul,unwrapped_mul,overflowing_mulmul_add,checked_mul_add,saturating_mul_add,wrapping_mul_add,unwrapped_mul_add,overflowing_mul_addsignum,checked_signum,saturating_signum,wrapping_signum,unwrapped_signum,overflowing_signum
- The
- The crate now requires rustc version 1.61.0 or later.
-
1.15.028 Apr 2022Release notes
Open source →- The following methods were added to all fixed-point signed numbers up to 64
bits wide:
*
wide_mul_unsigned*wide_sdiv*wide_div_unsigned- The following methods were added to all fixed-point unsigned numbers up to 64 bits wide:
- The following methods were added to all fixed-point signed numbers up to 64
bits wide:
*
-
1.14.020 Mar 2022Release notes
Open source →- The
next_multiple_ofmethod was added to all fixed-point numbers, to theFixedtrait, and to theWrappingandUnwrappedwrappers.- The following methods were added to all fixed-point numbers and to the
Fixedtrait: - The following methods were added to all signed fixed-point numbers, to the
FixedSignedtrait, and to theWrappingandUnwrappedwrappers for signed numbers: - The following methods were added to all unsigned fixed-point numbers, to the
FixedUnsignedtrait, and to theWrappingandUnwrappedwrappers for unsigned numbers: - Supertraits were added to <code>Fixed::Bits</code> and to <code>Fixed::NonZeroBits</code> in order to allow conversions and operations in generic functions.
- The [az crate] dependency was updated to version 1.2.
- The following methods were added to all fixed-point numbers and to the
- The
-
1.13.104 Mar 2022Release notes
Open source →- The [
const_fixed_from_int][cffi-1-13] macro now accepts a visibility qualifier ([merge request 10]).
- The [
-
1.13.022 Feb 2022Release notes
Open source →- The [
AddAssign], [SubAssign], [MulAssign], [DivAssign], [RemAssign], [BitAndAssign], [BitOrAssign] and [BitXorAssign] traits for <code>Wrapping<F></code> and <code>Unwrapped<F></code> are now also implemented withFas the type of the right-hand side operand.- Bug fix: compilation with certain flags was hanging for the thumbv6m target because of a rustc/LLVM issue. This version should not trigger the rustc/LLVM issue (issue 45).
- The [
-
1.12.004 Feb 2022Release notes
Open source →- The crate now requires rustc version 1.57.0 or later.
- The
wide_divmethod was added to all fixed-point numbers up to 64 bits wide ([issue 25]). - The following methods are now
constfunctions:
- The
- The crate now requires rustc version 1.57.0 or later.
-
1.11.024 Nov 2021Release notes
Open source →- The following methods were added to all fixed-point numbers, to the
Fixedtrait, and to theWrappingandUnwrappedwrappers: *lerp*inv_lerp- The following methods were added to all fixed-point numbers and to the
Fixedtrait: - The [typenum crate] dependency was updated to version 1.14.
- The
LeEqU8,LeEqU16,LeEqU32,LeEqU64andLeEqU128traits no longer have a direct'staticconstraint, as it is a constraint of their supertraitUnsignedsince typenum version 1.14. This fixes a potential compatibility issue introduced in version 1.9.0. - An experimental feature was added to enable serialization using the [borsh crate] (merge request 9).
- The following methods were added to all fixed-point numbers and to the
- The following methods were added to all fixed-point numbers, to the
-
1.10.023 Aug 2021Release notes
Open source →- The crate now requires rustc version 1.53.0 or later.
- <code>{[Div][
Div],[DivAssign][DivAssign],[Rem][Rem],[RemAssign][RemAssign]}<[NonZeroU32][NonZeroU32]></code> are now implemented forFixedU32, and similar for all other unsigned fixed-point numbers. - <code>{[Rem][
Rem],[RemAssign][RemAssign]}<[NonZeroI32][NonZeroI32]></code> are now implemented forFixedI32, and similar for all other signed fixed-point numbers. - The new
arbitraryoptional feature was added to implement theArbitrarytrait provided by the [arbitrary crate] for all fixed-point numbers (issue 37).
- <code>{[Div][
- The crate now requires rustc version 1.53.0 or later.
-
1.9.013 May 2021Release notes
Open source →- Fixed-point numbers can now be formatted as hexadecimal with [
Debug] similarly to primitive integers, for example formatting with{:X?}will produce upper-case hexadecimal fixed-point numbers.- The following methods were added to all fixed-point numbers, to the
Fixedtrait, and to theWrappingandUnwrappedwrappers: - The following methods were added to all fixed-point numbers and to the
Fixedtrait: - The
unsigned_distmethod was added to all signed fixed-point types and to theFixedSignedtrait. - The following associated types and provided methods were added to the
Fixedtrait: - The new trait
FixedEquivwas added. - The following traits from the [bytemuck crate] were implemented for all
fixed-point numbers, added as supertraits to the
Fixedtrait, and implemented for theWrappingandUnwrappedwrappers (issue 31).
- The following methods were added to all fixed-point numbers, to the
Compatibility notes
- Now the [
Debug] implementation forWrappingoutputs the value only without “Wrapping()”, and the [Debug] implementation forUnwrappedoutputs the value only without “Unwrapped()”. - The
LeEqU8,LeEqU16,LeEqU32,LeEqU64andLeEqU128traits now have a'staticconstraint. This should have no practical side effects, since these traits are a convenience feature and already have theUnsignedmarker trait as a supertrait, and the types that implementUnsignedare'static. - The
FixedOptionalFeaturestrait was not sealed, which was as an oversight. Now it is sealed, and the documentation explicitly states that the trait should not be used directly.
- Fixed-point numbers can now be formatted as hexadecimal with [
-
1.8.020 Apr 2021Release notes
Open source →- The following constants and method were added to all fixed-point numbers, to
the
Fixedtrait, and to theWrappingandUnwrappedwrappers: *ZERO,DELTA*mul_acc- The
ONEconstant was added to all fixed-point numbers that can represent the value 1. - The following methods were added to all fixed-point numbers and to the
Fixedtrait: - The following methods are now
constfunctions: - The following methods were added to all fixed-point numbers:
- Many methods were marked with the
must_useattribute.
- The
- The following constants and method were added to all fixed-point numbers, to
the
-
1.7.025 Mar 2021Release notes
Open source →- The crate now requires rustc version 1.50.0 or later.
- The following methods are now
constfunctions: - The following constant and methods were added to all fixed-point numbers, to
the
Fixedtrait, and to theWrappingandUnwrappedwrappers: - The following methods were added to the
WrappingandUnwrappedwrappers: - The following methods were added to all unsigned fixed-point types, to the
FixedUnsignedtrait, and to theWrappingandUnwrappedwrappers for unsigned numbers: - The
signed_bitsmethod was added to all signed fixed-point types, to theFixedSignedtrait, and to theWrappingandUnwrappedwrappers for signed numbers. - The following constants, which are available in other programming language
standard libraries, were added to the
constsmodule and as associated constants to fixed-point types:SQRT_PI(Go),FRAC_1_SQRT_PI(C++)SQRT_3(C++),FRAC_1_SQRT_3(C++)SQRT_E(Go)SQRT_PHI(Go)GAMMA(C++)CATALAN(Julia)
- [
Sum] and [Product] are now supertraits of theFixedtrait. - The
F128Bitstype was added to support conversions and comparisons between fixed-point numbers and binary128 floating-point numbers. - The features that previously required the
azandf16optional features are now always provided. Theazandf16optional features are now deprecated and have no effect. - For the experimental feature
num-traits, the following traits were implemented for all fixed-point numbers:
- The following methods are now
- The crate now requires rustc version 1.50.0 or later.
-
1.6.005 Feb 2021Release notes
Open source →- The crate now requires rustc version 1.47.0 or later.
- The optional [az crate] dependency was updated to version 1.1.
- The
unsigned_absmethod was added to all signed fixed-point types and to theFixedSignedtrait. - The following methods are now
constfunctions: - The
unwrapped_to_fixedmethod was added to theToFixedtrait. - The
unwrapped_from_fixedmethod was added to theFromFixedtrait.
- The crate now requires rustc version 1.47.0 or later.
-
1.5.005 Nov 2020Release notes
Open source →- The
wide_mulmethod was added to all fixed-point numbers up to 64 bits wide (issue 25).- Unwrapped methods for arithmetic together with the
Unwrappedwrapper were added. Unwrapped methods panic on overflow, even when debug assertions are disabled, similar to how wrapping methods will wrap around even when debug assertions are enabled. (This was previously an experimental featureunwrapped.) - The
serde-strfeature was added. (This was previously an experimental feature.) - For the experimental feature
num-traits, some missing supertraits were added toFixedOptionalFeatures. - Bug fix: multiplication of
FixedI128was panicking when multiplying some large negative numbers (issue 26).
- Unwrapped methods for arithmetic together with the
- The
-
1.4.022 Oct 2020Release notes
Open source →- The following methods were added to all fixed-point types, to the
Fixedtrait, and to theWrappingwrapper: *recip,checked_recip,saturating_recip,wrapping_recip,overflowing_recip- For the experimental feature
num-traits, the following traits were implemented where applicable (issue 23): - For the experimental feature
serde-str, serialization in human-readable formats was made more convenient to write manually (issue 24). This makes it incompatible with the version in 1.3.0.
- For the experimental feature
- The following methods were added to all fixed-point types, to the
-
1.3.015 Oct 2020Release notes
Open source →- The [
MulAssign] implementation on fixed-point numbers now accepts an rhs fixed-point number with a different number of fractional bits fromself.- The following methods were added to all fixed-point types, to the
Fixedtrait, and to theWrappingwrapper: - The new experimental feature
unwrappedwas added, providing arithmetic methods that panic on overflow even when debug assertions are disabled. - The new experimental feature
serde-strwas added, which makes serialization use the number’s value in human-readable formats.
- The following methods were added to all fixed-point types, to the
- The [
-
1.2.002 Sep 2020Release notes
Open source →- The
const_fixed_from_int!macro was added to make it easy to define constant fixed-point numbers using integer expressions (issue 20).
- The
-
1.1.021 Jul 2020Release notes
Open source →- The new experimental feature
num-traitswas added to implement some traits, and to also add the relevant traits as supertraits to theFixedOptionalFeaturestrait (issue 18).
- The new experimental feature
-
1.0.004 Jun 2020Release notes
Open source →- The crate now requires rustc version 1.44.0 or later.
- The following methods are now
constfunctions: - All deprecated items were removed.
- The following methods are now
- The crate now requires rustc version 1.44.0 or later.
-
0.5.711 May 2020Release notes
Open source →- The
LosslessTryFromandLosslessTryIntotraits were added.- The following methods were added to all fixed-point types, to the
Fixedtrait, and to theWrappingwrapper:leading_ones,trailing_ones
- The following method was added to unsigned fixed-point types and to the
FixedUnsignedtrait:wrapping_next_power_of_two
- The
PHIandFRAC_1_PHIconstants were added to theconstsmodule and as associated constants to fixed-point types.
- The following methods were added to all fixed-point types, to the
- The
-
0.5.601 May 2020Release notes
Open source →- The following methods were added to signed fixed-point types and to the
FixedSignedtrait: *checked_signum,saturating_signum,wrapping_signum,overflowing_signum- The
LossyFromandLossyIntotraits were added to the prelude. - Casts deprecated in version 0.3.1 of the az crate were marked as deprecated.
- The
- The following methods were added to signed fixed-point types and to the
-
0.5.516 Apr 2020Release notes
Open source →- Bug fix: an incorrect result could be given when comparing a signed
fixed-point number of type
FixedIto a number that would overflow by exactly one bit when converting toFixedI.- The following associated constants were added to all fixed-point types, to
the
Fixedtrait, and to theWrappingwrapper:MIN,MAX
- The following associated constants were added to the
Fixedtrait and to theWrappingwrapper:INT_NBITS,FRAC_NBITS
- The following methods were added to all fixed-point types and to the
Fixedtrait:int_log2,int_log10checked_int_log2,checked_int_log10
- The following methods were added to the
Wrappingwrapper:int_log2,int_log10
- The constants in the
constsmodule were also added as associated constants to fixed-point types that can represent them. - The following methods were deprecated:
min_value,max_valueint_nbits,frac_nbits
- The following associated constants were added to all fixed-point types, to
the
- Bug fix: an incorrect result could be given when comparing a signed
fixed-point number of type
-
0.5.421 Feb 2020Release notes
Open source →- Bug fix:
rem_euclid_intand its checked versions were handling overflow incorrectly.
- Bug fix:
-
0.5.313 Feb 2020Release notes
Open source →- Bug fix:
round_to_zerowas returning incorrect results for negative whole number operands.- Bug fix: all remainder operations with a fixed-point LHS and an integer RHS were giving an incorrect answer (https://gitlab.com/tspiteri/fixed/issues/13).
- Bug fix: Euclidean division operations by integers were giving an incorrect answer.
RemandRemAssignwere implemented for fixed-point numbers.- The following methods were added to all fixed-point types and to the
Fixedtrait:checked_remdiv_euclid,rem_euclidchecked_div_euclid,checked_rem_euclidsaturating_div_euclidwrapping_div_euclidoverflowing_div_euclid
- The following methods were added to the
Wrappingwrapper:div_euclid,rem_eucliddiv_euclid_int,rem_euclid_int
- The following methods were deprecated:
wrapping_rem_int,overflowing_rem_int
- Bug fix:
-
0.5.202 Feb 2020