Binary representation of floats in c
The snippet can be accessed without any authentication.
Authored by
John Madden
Simple main.c
file to investigate the binary representation of floating point values. The value 0.0
as a float has the binary representation of 0b0
or all zeros. Thus, this allows the value to be compared using ==
.
main.c 250 B
Please register or sign in to comment