-
-
Save onkoe/3cc2977cfc891711340da17ca23c9f49 to your computer and use it in GitHub Desktop.
Rust f64 debugging source for "normal computers" that use `std`
This file contains hidden or 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() { | |
for num in 0..100 { | |
let calc = ((num >> 3) & 0x1FFF) as f64 * 0.25_f64; | |
println!("#{}, got {}", num, calc) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment