2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2011-03-24 19:12:24 -05:00
|
|
|
fn main() {
|
2011-07-27 07:19:39 -05:00
|
|
|
let f = 4.999999999999;
|
2011-06-15 13:19:50 -05:00
|
|
|
assert (f > 4.90);
|
|
|
|
assert (f < 5.0);
|
2011-07-27 07:19:39 -05:00
|
|
|
let g = 4.90000000001e-10;
|
2011-06-15 13:19:50 -05:00
|
|
|
assert (g > 5e-11);
|
|
|
|
assert (g < 5e-9);
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|