Trevor Spiteri
3248e354ba
version 0.4.5
2019-08-30 22:32:17 +02:00
Trevor Spiteri
a4c3fdeeed
add methods to Wrapping
2019-08-30 12:48:31 +02:00
Trevor Spiteri
f314735cc9
bug fix: decimal display panics or includes leading zero
2019-08-29 11:50:18 +02:00
Trevor Spiteri
de6ecb5782
add Wrapping::round_ties_to_even
2019-08-29 10:12:17 +02:00
Trevor Spiteri
50ca556686
version 0.4.4
2019-08-24 13:15:28 +02:00
Trevor Spiteri
348463d204
state aims at top of documentation
2019-08-23 10:03:59 +02:00
Trevor Spiteri
3292a2da26
some minor doc improvements
2019-08-22 14:26:08 +02:00
Trevor Spiteri
9e333d99c2
add round_to_zero
2019-08-22 13:39:51 +02:00
Trevor Spiteri
0eade78071
add round_ties_to_even and checked variants
2019-08-22 13:01:28 +02:00
Trevor Spiteri
b3796a46f0
make is_power_of_two a const fn
2019-08-21 22:15:36 +02:00
Trevor Spiteri
381af22e96
make {,wrapping_,overflowing_}abs const
2019-08-21 15:46:24 +02:00
Trevor Spiteri
ba594f24e1
document bug fix in release notes
2019-08-21 13:30:49 +02:00
Trevor Spiteri
8176a36a95
version 0.4.3
2019-08-20 19:40:53 +02:00
Trevor Spiteri
daa600bb71
properly handle precision in Display
2019-08-19 23:53:43 +02:00
Trevor Spiteri
02255757b4
Wrapping::from_str was moved to impl FromStr
2019-08-19 01:16:53 +02:00
Trevor Spiteri
a2249ea232
add {saturating,wrapping_overflowing}_from_str{,_binary,_octal,_hex}
2019-08-19 00:30:02 +02:00
Trevor Spiteri
cba3907e37
from_str now rounds ties to even
2019-08-17 23:57:39 +02:00
Trevor Spiteri
28885e09ab
make INT_NBITS and FRAC_NBITS constants public
2019-08-17 17:55:50 +02:00
Trevor Spiteri
1a859f2033
20 more const functions
2019-08-17 17:10:55 +02:00
Trevor Spiteri
0e96ea1243
depend on rustc 1.34.0 (for some const functions)
2019-08-17 16:52:08 +02:00
Trevor Spiteri
2518b6b147
make const functions: min_value, max_value, from_bits, to_bits
2019-08-17 16:45:09 +02:00
Trevor Spiteri
9e671fced6
version 0.4.2
2019-08-16 23:25:19 +02:00
Trevor Spiteri
9eab1c5be9
add {from,to}_num, deprecate sealed::{Int,Float,Fixed}
...
* new methods from_num, to_num, and their checked versions
* deprecate all other from_* and to_*, except for the FromFixed and
ToFixed traits
* deprecate sealed::{Fixed,Int,Float}
* removed SealedFixed, replace Sealed{Int,Float} with
{Int,Float}Helper
2019-08-16 15:45:26 +02:00
Trevor Spiteri
aac10de995
add from* methods to Wrapping
2019-08-15 14:38:27 +02:00
Trevor Spiteri
e740a88547
very long decimal fraction strings are now parsed correctly
2019-08-13 19:01:01 +02:00
Trevor Spiteri
ea84e11808
version 0.4.1
2019-08-12 14:25:51 +02:00
Trevor Spiteri
af02209c48
add from_str_{binary,octal,hex} to traits::Fixed
2019-08-10 19:14:15 +02:00
Trevor Spiteri
1a9816486c
add FromStr supertrait to traits::Fixed
2019-08-09 22:38:09 +02:00
Trevor Spiteri
c64a2fce0a
version 0.4.0
2019-08-08 23:25:05 +02:00
Trevor Spiteri
a4b243ce7e
remove deprecated methods
2019-08-08 22:47:49 +02:00
Trevor Spiteri
0ebf6a87a0
add consts module
2019-08-06 18:53:41 +02:00
Trevor Spiteri
1d13dfa7a1
implement almost all methods in Fixed{,Signed,Unsigned} traits
...
Conversions that can be handled using FromFixed and toFixed are not
included.
2019-08-06 16:43:39 +02:00
Trevor Spiteri
3f7822b7e5
add saturating_neg and saturating_abs
2019-08-06 16:35:58 +02:00
Trevor Spiteri
5fa0b53ddc
clean up sealed traits and split off new traits::Fixed
2019-08-06 14:40:58 +02:00
Trevor Spiteri
91a4ba3de7
mention new rustc requirement in release notes
2019-08-03 01:26:32 +02:00
Trevor Spiteri
a028cb07a9
next version will be 0.4.0 because of incompatible change
2019-08-02 19:01:46 +02:00
Trevor Spiteri
225a0e8307
update release notes to mention new traits
2019-08-02 15:40:22 +02:00
Trevor Spiteri
419e291507
version 0.3.3
2019-06-27 23:54:28 +02:00
Trevor Spiteri
8a13d678b6
document conversions to/from {isize,usize}
2019-06-27 23:31:34 +02:00
Trevor Spiteri
ded37197a6
version 0.3.2
2019-02-27 22:52:15 +01:00
Trevor Spiteri
e091e76d52
version 0.3.1
2019-02-07 00:59:41 +01:00
Trevor Spiteri
af9cda1078
reimplement From<bool> for fixed-point numbers
2019-02-04 12:46:42 +01:00
Trevor Spiteri
004077a002
version 0.3.0
2019-02-03 21:37:17 +01:00
Trevor Spiteri
27f8f57f90
deprecate/rename {int,frac}_bits -> {int,frac}_nbits
2019-02-03 20:36:08 +01:00
Trevor Spiteri
27c9ee7b0f
implement comparisons between fixed and float
2019-02-03 20:25:37 +01:00
Trevor Spiteri
c997c4ffeb
remove bool from Int trait
2019-02-02 23:53:03 +01:00
Trevor Spiteri
78cb0ea9b6
generalize comparisons between fixeds and ints
2019-02-02 23:45:03 +01:00
Trevor Spiteri
7e9e3ef04d
{saturating,wrapping,overflowing}_to_{fixed,int}
2019-02-01 20:46:51 +01:00
Trevor Spiteri
3b3d22fc6f
remove checked_to_float
2019-02-01 14:53:25 +01:00
Trevor Spiteri
ed3ed75093
add from_fixed to trait Float
2019-02-01 14:53:14 +01:00