SHARE
TWEET

Untitled

a guest Sep 24th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() -> Result<(), serde_json::Error> {
  2.     let x = 4.211718;
  3.     let y = x / 100.0;
  4.     let z = serde_json::from_str::<f64>(&serde_json::to_string(&y)?)?;
  5.     println!("{:?} != {:?}", y, z);
  6.     Ok(())
  7. }
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