Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Floating point number to binary
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="pete, post: 2387336"] Those statements won't do what you want, unless CHAR_BIT equals 8. sizeof(char) always equals 1, so it's a little strange to use sizeof(char) as a multiplicand in an expression. If 8 is replaced by CHAR_BIT, then the 0x1 expression, would also have to be replaced by one with an unsigned type, like 1u. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Floating point number to binary
Top