Advertisement
cwchen

[Rust] Converting data type demo

Aug 22nd, 2017
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.08 KB | None | 0 0
  1. use std::f64;
  2.  
  3. fn main() {
  4.     assert!(f64::abs(1.0 - (1 as f64)) < 1e-10);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement