fixed/RELEASES.md

94 lines
3.4 KiB
Markdown
Raw Normal View History

2019-01-26 13:02:58 -08:00
<!-- Copyright © 20182019 Trevor Spiteri -->
2018-08-10 11:57:59 -07:00
<!-- Copying and distribution of this file, with or without
modification, are permitted in any medium without royalty provided the
copyright notice and this notice are preserved. This file is offered
as-is, without any warranty. -->
2019-01-29 13:08:50 -08:00
Version 0.2.1 (2019-01-29)
2019-01-29 09:34:12 -08:00
==========================
* Bug fix: the `from_fixed` and `from_int` methods (and their
checked counterparts) could return wrong values for negative
values.
2019-01-29 12:47:55 -08:00
* Bug fix: display was using one fractional digit less than
required, thus yielding the same output for diffent fixed-point
numbers.
2019-01-29 09:34:12 -08:00
2019-01-28 18:35:42 -08:00
Version 0.2.0 (2019-01-29)
==========================
2019-01-28 13:43:43 -08:00
* The new methods `from_fixed`, `checked_from_fixed`,
`saturating_from_fixed`, `wrapping_from_fixed` and
`overflowing_from_fixed` were added.
* The old method `from_int` was removed to be replaced.
* The new methods `from_int`, `checked_from_int`,
`saturating_from_int`, `wrapping_from_int` and
`overflowing_from_int` were added.
* The new methods `from_float`, `checked_from_float`,
`saturating_from_float`, `wrapping_from_float` and
`overflowing_from_float` were added.
2019-01-28 18:35:42 -08:00
* The new method `to_float` was added.
2019-01-28 13:43:43 -08:00
* The methods `from_f16`, `from_f32`, `from_f64`, `to_f16`, `to_f32`
and `to_f64` were deprecated.
* The `to_int` method was fixed to truncate fractional bits as
documented for negative values.
2019-01-28 17:13:19 -08:00
* The new methods `ceil`, `floor`, `round`, `checked_ceil`,
`checked_floor`, `checked_round`, `saturating_ceil`,
`saturating_floor`, `saturating_round`, `wrapping_ceil`,
`wrapping_floor`, `wrapping_round`, `overflowing_ceil`,
2019-01-28 18:35:42 -08:00
`overflowing_floor` and `overflowing_round` were added.
* The methods `to_int_ceil`, `to_int_floor` and `to_int_round` were
deprecated.
2019-01-26 15:39:24 -08:00
Version 0.1.6 (2019-01-27)
==========================
* Optional serde support was added.
2019-01-26 13:02:58 -08:00
Version 0.1.5 (2019-01-26)
==========================
* Lossless infallible conversions between fixed-point numbers and
2019-01-26 12:44:34 -08:00
numeric primitives are now supported using `From` and `Into`.
* A new module `types` is available with aliases for all supported
fixed-point numbers.
2018-11-29 00:55:39 -08:00
Version 0.1.4 (2018-11-29)
2018-11-03 09:23:18 -07:00
==========================
* Division is now implemented for `FixedI128` and `FixedU128`.
2018-08-23 04:32:59 -07:00
Version 0.1.3 (2018-08-23)
2018-08-23 04:12:32 -07:00
==========================
2018-08-23 04:32:59 -07:00
* The `f16` feature was added, and new methods `from_f16` and
`to_f16` were added.
2018-08-23 04:12:32 -07:00
2018-08-15 11:14:36 -07:00
Version 0.1.2 (2018-08-15)
2018-08-12 03:11:28 -07:00
==========================
* The crate can now be used without the standard library `std`.
2018-08-13 15:21:29 -07:00
* New methods `from_f32` and `from_f64` were added.
2018-08-14 08:47:29 -07:00
* New methods `is_positive` and `is_negative` were added to signed
fixed-point numbers.
2018-08-12 03:11:28 -07:00
2018-08-11 12:10:03 -07:00
Version 0.1.1 (2018-08-11)
==========================
* Comparisons are now supported between all fixed-point numbers with
the same underlying integer type.
* New static methods `int_bits` and `frac_bits` were added.
* New methods `from_int`, `to_int`, `to_int_ceil`, `to_int_floor`
2018-08-11 12:10:03 -07:00
and `to_int_round` were added.
* New methods `int` and `frac` were added.
* Support for multiplication and division by integers was added.
2018-08-10 11:57:59 -07:00
Version 0.1.0 (2018-08-10)
==========================
* `Unsigned` constants provided by the *typenum* crate are now used
for the number of fractional bits.
* Many methods and trait implementations available for primitive
integers are now also supported by the fixed-point numbers.