]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/floatlits.rs
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30
[rust.git] / src / test / ui / numbers-arithmetic / floatlits.rs
1 // run-pass
2
3
4
5 pub fn main() {
6     let f = 4.999999999999f64;
7     assert!((f > 4.90f64));
8     assert!((f < 5.0f64));
9     let g = 4.90000000001e-10f64;
10     assert!((g > 5e-11f64));
11     assert!((g < 5e-9f64));
12 }