2012-01-22 18:41:08 -06:00
|
|
|
// Regression test that f64 exports things properly
|
|
|
|
|
2012-09-05 14:32:05 -05:00
|
|
|
use io::println;
|
2012-01-22 18:41:08 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
|
|
|
let digits: uint = 10 as uint;
|
|
|
|
|
2012-06-04 19:26:17 -05:00
|
|
|
println(float::to_str(f64::sqrt(42.0f64) as float, digits));
|
2012-01-22 18:41:08 -06:00
|
|
|
}
|