summaryrefslogtreecommitdiffstats
path: root/tests/ui/numbers-arithmetic/floatlits.rs
blob: 07049af315b0a1ff26a998a31feec58e6e372eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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));
}