I agree, but it *is* slightly confusing:
| > 0==0.0; | (1) Result: 0 | > !0; | (2) Result: 1 | > !0.0; | (3) Result: 0
/ Mirar
Previous text:
2003-09-15 20:24: Subject: float type weirdness
I disagree. Empty datatypes in pike are not false, as they are in some other langauges. "", (<>), ({}) and ([]) are not false, and so should not 0.0 be either.
/ Martin Nilsson (saturator)