Advertisement
cwchen

[Rust] floating-point numbers calcuation error

Aug 22nd, 2017
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.05 KB | None | 0 0
  1. fn main() {
  2.     assert_eq!(0.3 - 0.2, 0.1);
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement