SHARE
TWEET

Untitled

a guest Apr 18th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     let v = u64::max_value() / 23994699992;
  3.    
  4.     let x = format!("{:016x}", v);
  5.    
  6.     let y = u64::from_str_radix(&x, 16).unwrap();
  7.    
  8.     assert_eq!(v, y);
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top