rust/src/test/run-pass/core-export-f64-sqrt.rs
2012-01-22 16:42:00 -08:00

11 lines
194 B
Rust

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