Zero vs. Negative Zero
May 18th, 2005
| Tags: computing
If you take two very small numbers (one positive and one negative) and then truncate the output value, you can get a zero and a negative zero.
Like in the following code:
int main() {
printf( “%.6f
Leave a comment