Skip to content

Instantly share code, notes, and snippets.

@CreateRemoteThread
Last active June 3, 2019 09:46
Show Gist options
  • Select an option

  • Save CreateRemoteThread/5f7df69f04c455b48a7d88fa6f984474 to your computer and use it in GitHub Desktop.

Select an option

Save CreateRemoteThread/5f7df69f04c455b48a7d88fa6f984474 to your computer and use it in GitHub Desktop.
#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