mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
13 lines
210 B
Rust
13 lines
210 B
Rust
// run-pass
|
|
|
|
|
|
|
|
pub fn main() {
|
|
let f = 4.999999999999f64;
|
|
assert!((f > 4.90f64));
|
|
assert!((f < 5.0f64));
|
|
let g = 4.90000000001e-10f64;
|
|
assert!((g > 5e-11f64));
|
|
assert!((g < 5e-9f64));
|
|
}
|