6f5853f5a1
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.
10 lines
180 B
Rust
10 lines
180 B
Rust
// Regression test that f64 exports things properly
|
|
|
|
import io::println;
|
|
|
|
fn main() {
|
|
|
|
let digits: uint = 10 as uint;
|
|
|
|
println( float::to_str( f64::sqrt(42.0), digits) );
|
|
} |