Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created August 25, 2019 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/44314b926434e8b085a2f52357d70063 to your computer and use it in GitHub Desktop.
Save rust-play/44314b926434e8b085a2f52357d70063 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
fn main() {
println!("{:?}", 1u32.cmp(&2));
println!("{:?}", 1.0f32.partial_cmp(&2.0f32));
println!("{:?}", std::f32::NAN.partial_cmp(&2.032));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment