P is for Practical | |
PerlMonks |
Re^5: Spaceship Zeroby ikegami (Patriarch) |
on Nov 10, 2008 at 16:21 UTC ( [id://722680]=note: print w/replies, xml ) | Need Help?? |
The OP didn't say sign function, he said sign of a number. In floating point numbers, every number including zero has a sign. -0 is a different number than 0. It's not a visual representation. It's used in underflows. n = 0 means 0 ≤ n < {smallest positive}. n = -0 means {smallest negative} < n ≤ 0
In Section
Obfuscated Code
|
|