deckchair-technicians / vice

Prismatic schema extensions. Coercions attached to schemas. Use schema as Midje checkers...
Eclipse Public License 1.0
3 stars 0 forks source link

PositiveNum allows NaN #1

Open no-man-is-an-island opened 10 years ago

no-man-is-an-island commented 10 years ago

Doesn't feel right..

I could be wrong though

drewnoakes commented 10 years ago

Does it allow negative NaN, or just positive NaN?

no-man-is-an-island commented 10 years ago

If there's a distinction in Java, then I can't find it :)

drewnoakes commented 10 years ago

Via Double.longBitsToDouble, anything is possible.