Last active
June 3, 2019 09:46
-
-
Save CreateRemoteThread/5f7df69f04c455b48a7d88fa6f984474 to your computer and use it in GitHub Desktop.
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
| #include <stdio.h> | |
| #include <math.h> | |
| // take a hex number and make it back into the original float | |
| int main(int argc, char **argv) | |
| { | |
| if(argc != 2) | |
| { | |
| return -1; | |
| } | |
| float x = 0xb407b260; | |
| sscanf(argv[1],"%x",&x); | |
| printf("%.50f\n",(float )x); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment