in reply to Re^2: Why is Zero not 0?
in thread Why is Zero not 0?

I think that, so long as the number is less than zero && the number rounds to zero, then we get a leading "-0". Hence:
C:\C>perl -e "printf \"%0.2f\", -0.0049" -0.00 C:\C>perl -e "printf \"%.0f\", -0.499" -0
Cheers,
Rob

Replies are listed 'Best First'.
Re^4: Why is Zero not 0?
by Joost (Canon) on Feb 03, 2008 at 14:02 UTC