PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jruderman/rust
Rust | 10 lines | 8 code | 2 blank | 0 comment | 8 complexity | c3b7289fa396a13334c403ff9675717a MD5 | raw file
 1
 2
 3fn main() {
 4    let pi = 3.1415927;
 5    log(debug, -pi * (pi + 2.0 / pi) - pi * 5.0);
 6    if pi == 5.0 || pi < 10.0 || pi <= 2.0 || pi != 22.0 / 7.0 || pi >= 10.0
 7           || pi > 1.0 {
 8        debug!{"yes"};
 9    }
10}