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 »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| plotting shapes not working | madscijr | 6 | 619 |
10-22-2025, 05:29 AM Last Post: SMcNeill |
|
| why isn't _FULLSCREEN working? | madscijr | 5 | 509 |
09-20-2025, 01:47 AM Last Post: SMcNeill |
|
| I'm working on an old MS-DOS thingy... | KlamPs | 2 | 503 |
08-25-2025, 09:43 AM Last Post: hsiangch_ong |
|
| blue circle isn't drawing and print isn't working? | madscijr | 12 | 2,302 |
09-21-2024, 06:13 PM Last Post: madscijr |
|
| Updating Clock at a different rate to program loop-example not working as expected? | dowster | 1 | 591 |
08-15-2024, 12:06 PM Last Post: luke |
|