ceylon/ceylon.language — Issue #52: Float.positive and zero
Author: tombentley
Created: 2012-02-15 09:07:16+00:00
State: open

`Float.positive` is currently implemented as `return value > 0`. Similarly for `.negative`, this means that `+0.0` and `-0.0` are neither positive nor negative (just like NaN). We should document the expected behavior of zero.

The fact that `foo.positive` is not the same as `! foo.negative` is likely to be a source of subtle bugs.

I think we should throw an exception for NaN.