There's a part of me that wonders what bugs lurk beneath the surface of software that outputs something like "-0". It's *probably* fine, but.........
#include <stdio.h>
int
main()
{
double temperature = -0.1;
printf("%2.0lf\n", temperature);
return 0;
}
#include <stdio.h>
int
main()
{
double temperature = -0.1;
printf("%2.0lf\\n", temperature);
return 0;
}
#include <stdio.h>
int
main()
{
double temperature = -0.1;
printf("%2.0lf\n", temperature);
return 0;
}
#include <stdio.h>
int
main()
{
double temperature = -0.1;
printf("%2.0lf\n", temperature);
return 0;
}
I'm sure it's fine, but it's hard not to think in debugging terms sometimes.....