Android Question How To Set Values to NAN

rgarnett1955

Active Member
Licensed User
Longtime User
Is there an elegant way of setting a float or double to NaN?

I used:

B4X:
Public Const NaNd = $"$1.2{"The value is not a number!"}"$ As Double

But it a bit cumbersome and I just can't remember it, so every time I need it I have to look it up.

Best regards

Rob
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…