[Implemented] "Special" floating point values
Posted: Fri Feb 04, 2005 11:57 am
Can't find whether this can already be achieved or whether has been requested, but I know there's a lot of stuff "floating" around this forum. Haha!
The ability to use, set and check for the special floating point values (NaN, +Inf, -Inf, etc) would be great.
Perhaps usable something like this:
I know the values for +/-Inf can be calculated by dividing by zero, but it doesn't seem possible to make use of such a capability. At least not in PB's native code. I've not check out the F64 lib.
The ability to use, set and check for the special floating point values (NaN, +Inf, -Inf, etc) would be great.
Perhaps usable something like this:
Code: Select all
DefType.f blah
blah = #NaN
; ...
If blah = #NaN
MessageRequester("Error", "You did not enter a valid number")
EndIf