diff options
| author | bors <bors@rust-lang.org> | 2014-04-22 22:01:32 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-04-22 22:01:32 -0700 |
| commit | 30fe55066a29a14fffd2a5f41e0ab21e7056fb34 (patch) | |
| tree | d3f1b728cbb4e6a74970de28ad65931ee228e407 /src/libtest | |
| parent | 696f16ec2e54e8563702b1cdbbaaa1877562aa60 (diff) | |
| parent | 2d9dfc64792d14ba46b345b7e7f2913c6a9b28ca (diff) | |
| download | rust-30fe55066a29a14fffd2a5f41e0ab21e7056fb34.tar.gz rust-30fe55066a29a14fffd2a5f41e0ab21e7056fb34.zip | |
auto merge of #13597 : bjz/rust/float-api, r=brson
This pull request: - Merges the `Round` trait into the `Float` trait, continuing issue #10387. - Has floating point functions take their parameters by value. - Cleans up the formatting and organisation in the definition and implementations of the `Float` trait. More information on the breaking changes can be found in the commit messages.
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/stats.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtest/stats.rs b/src/libtest/stats.rs index 754f636618e..67b5c557b59 100644 --- a/src/libtest/stats.rs +++ b/src/libtest/stats.rs @@ -352,8 +352,8 @@ pub fn write_boxplot(w: &mut io::Writer, s: &Summary, let (q1,q2,q3) = s.quartiles; // the .abs() handles the case where numbers are negative - let lomag = (10.0_f64).powf(&(s.min.abs().log10().floor())); - let himag = (10.0_f64).powf(&(s.max.abs().log10().floor())); + let lomag = 10.0_f64.powf(s.min.abs().log10().floor()); + let himag = 10.0_f64.powf(s.max.abs().log10().floor()); // need to consider when the limit is zero let lo = if lomag == 0.0 { |
