Zero vs. Negative Zero

May 18th, 2005 | Tags:

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

No comments yet.
You must be logged in to post a comment.