rust/src/test/run-pass/core-export-f64-sqrt.rs
2012-09-05 12:32:05 -07:00

10 lines
186 B
Rust

// Regression test that f64 exports things properly
use io::println;
fn main() {
let digits: uint = 10 as uint;
println(float::to_str(f64::sqrt(42.0f64) as float, digits));
}