File tree 3 files changed +6
-3
lines changed 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
- rust : nightly
2
+ rust : stable
Original file line number Diff line number Diff line change @@ -15,3 +15,6 @@ path = "src/lib.rs"
15
15
test = true
16
16
doctest = true
17
17
doc = true
18
+
19
+ [dependencies ]
20
+ num = " 0.1"
Original file line number Diff line number Diff line change 55
55
//! It may seem reasonable to expect numbers that differ by less than 0.000001 to be equal, but
56
56
//! this does not always work well (consider comparing -0.0000000028 to +0.00000097).
57
57
58
- #![ feature( zero_one) ]
58
+ extern crate num;
59
+ use num:: Zero ;
59
60
60
61
use std:: mem;
61
62
use std:: cmp:: { Ordering , PartialOrd } ;
62
63
use std:: ops:: { Sub , Div } ;
63
- use std:: num:: Zero ;
64
64
65
65
/// A trait for floating point numbers which computes the number of representable
66
66
/// values or ULPs (Units of Least Precision) that separate the two given values.
You can’t perform that action at this time.
0 commit comments