Posts
 
Reputation
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
~6K People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for nsavvinv

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]

Member Avatar for frodothehobbit
0
6K

The End.