Advertisement
cwchen

[Rust] Calling a function demo.

Aug 23rd, 2017
1,497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.13 KB | None | 0 0
  1. // Call f64 module
  2. use std::f64;
  3.  
  4. fn main() {
  5.     // Call sqrt function
  6.     let n = f64::sqrt(4.0);
  7.  
  8.     println!("{}", n);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement