computingThe Plaid Cow on 18 May 2005
Zero vs. Negative Zero
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