Commit Graph

62 Commits

Author SHA1 Message Date
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
Trevor Spiteri 9c22e037c0 add from_fixed plus checked versions to trait Int 2019-02-01 14:45:17 +01:00
Trevor Spiteri f7300c7f8a add to_fixed plus checked versions to traits Int and Float 2019-02-01 02:40:35 +01:00
Trevor Spiteri c9e9686ac4 consistent {to,checked_to}_{fixed,int,float}, some doc updates 2019-02-01 01:13:53 +01:00
Trevor Spiteri 87b00f66a2 add to_fixed 2019-01-29 23:20:38 +01:00
Trevor Spiteri d5e135889c version 0.2.1 2019-01-29 23:16:09 +01:00
Trevor Spiteri 455a770f03 fix display precision bug 2019-01-29 21:47:55 +01:00
Trevor Spiteri c1a0f04af0 update release notes 2019-01-29 18:34:12 +01:00
Trevor Spiteri 1725b12340 version 0.2.0 2019-01-29 03:35:42 +01:00
Trevor Spiteri 3fbd016ac6 fix to_int and deprecate to_int_{ceil,floor,round}
to_int was not truncating fractional bits for negative numbers with
non-zero fractions, but was rounding towards zero instead.
2019-01-29 03:04:02 +01:00
Trevor Spiteri 1816b6e2bd update release notes 2019-01-29 02:13:19 +01:00
Trevor Spiteri 02ea584ac0 update release notes 2019-01-28 22:43:43 +01:00
Trevor Spiteri 2a7cf2c4b5 complete from_float family of functions
Now from_float, checked_from_float, saturating_from_float,
wrapping_from_float and overflowing_from_float are all implemented.
2019-01-28 19:45:33 +01:00
Trevor Spiteri 3724d461b6 document that signum can panic if the signum cannot be represented 2019-01-28 04:30:56 +01:00
Trevor Spiteri b3f2d2d120 replace {to,from}_{f16,f32,f64} -> {to,from}_float 2019-01-28 03:41:44 +01:00
Trevor Spiteri 2a2395af10 version 0.1.6: serde support 2019-01-27 00:39:24 +01:00
Trevor Spiteri 26dbf7059c version 0.1.5: mention types module in release notes 2019-01-26 22:22:18 +01:00
Trevor Spiteri 9b8e36a71d version 0.1.5 2019-01-26 22:02:58 +01:00
Trevor Spiteri 59b407ba61 add bool to fixed conversion 2019-01-26 21:44:34 +01:00
Trevor Spiteri b71b41cd70 implement infallible fixed to primitive conversions 2019-01-26 21:16:20 +01:00
Trevor Spiteri c69544b9a0 version 0.1.4 2018-11-29 09:55:39 +01:00
Trevor Spiteri a2a7254a48 update release notes 2018-11-03 17:23:18 +01:00