09-09-2023, 06:48 PM
Thanks for this Steve. INF I think I have a working solution. NaN's been escaping me. I'm not sure if others who may be following this thread might find your treatment of INF handy.
Working with NAN
|
09-09-2023, 06:48 PM
Thanks for this Steve. INF I think I have a working solution. NaN's been escaping me. I'm not sure if others who may be following this thread might find your treatment of INF handy.
09-09-2023, 07:11 PM
09-09-2023, 07:26 PM
@Dimster You might want to double check my code there.
DECLARE CUSTOMTYPE LIBRARY "isnan" FUNCTION IsNan% (BYVAL n AS DOUBLE) END DECLARE I'm kinda surprised that worked before. We should be passing values BYVAL, and I left that out above. I just had my gallbladder removed yesterday and I'm still on some NICE pain meds for the next few days as I heal up. My brain is probably at 50% capacity so double check anything I say for now. LOL,
Try this as a properly working version:
Save as isnan.h: Code: (Select All) #include <stdio.h> Code: (Select All)
Notice the output is: 0 / 0 is NaN but is *not* INF. 1 / 0 is NaN and is also INF. 0 / 1 is neither NaN, nor is it INF.
09-10-2023, 12:24 AM
@smcneill this should go on wiki.
Glad your surgery was a success and healing up.
09-15-2023, 03:03 AM
In SICK it is:
Code: (Select All) 5 Rem Qnan.sic |
« Next Oldest | Next Newest »
|