Created
August 25, 2019 03:24
-
-
Save rust-play/44314b926434e8b085a2f52357d70063 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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