Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.73K
1 Posted Topic
I know this is an old thread, but there is a simpler way of doing this I think: [CODE] #include <iostream> #include <bitset> void float_bin(float f) { int x = *(int *)&f; std::bitset<sizeof(int) * 8> binary(x); std::cout << binary << std::endl; } [/CODE]
The End.
frodothehobbit