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