rust/src/test/run-pass/float.rs

11 lines
221 B
Rust
Raw Normal View History

2011-03-21 18:43:05 -05:00
fn main() {
2011-07-27 07:19:39 -05:00
let pi = 3.1415927;
log(debug, -pi * (pi + 2.0 / pi) - pi * 5.0);
2011-07-27 07:19:39 -05:00
if pi == 5.0 || pi < 10.0 || pi <= 2.0 || pi != 22.0 / 7.0 || pi >= 10.0
|| pi > 1.0 {
debug!{"yes"};
}
}