Skip to content

Commit

Permalink
Merge #41
Browse files Browse the repository at this point in the history
41: Various improvements to FloatCore r=vks a=cuviper

- New macros simplify forwarding method implementations.
  - `Float` and `Real` use this to compact their implementations.
  - `FloatCore` now forwards `std` implementations when possible.
- `FloatCore` now requires `NumCast`, like `Float does.
- New additions to `FloatCore`:
  - Constants like `min_value()` -> `f64::MIN`
  - Rounding methods `floor`, `ceil`, `round`, `trunc`, `fract`
  - `integer_decode` matching `Float`'s
- Fix NAN sign handling in `FloatCore` (rust-num/num#312, rust-lang/rust#42425)
- Fix overflow in `FloatCore::powi` exponent negation.
- Add doctests to all `FloatCore` methods.
  • Loading branch information
bors[bot] committed Mar 1, 2018
2 parents dc6a125 + 04a3f2a commit 5f90623
Show file tree
Hide file tree
Showing 6 changed files with 849 additions and 486 deletions.
1 change: 0 additions & 1 deletion src/cast.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use core::f64;
use core::mem::size_of;
use core::num::Wrapping;

Expand Down
Loading

0 comments on commit 5f90623

Please sign in to comment.