09-15-2023, 12:17 AM
Here is an interesting Sick program:
Code: (Select All)
5 Rem Qnan.sic
10 Print "-1// equals: ";
20 Print Suffix(-1//) ' as -1.#IND (cannot be calculated/NAN - not a number)
30 Print "-(-1//) equals: ";
40 Print Suffix(-(-1//)) ' as 1.#QNAN (results as a quotient not a number)
50 Print "1/0 equals: ";
60 Print Suffix(1/0) ' as 1.#INF (underflow) (division by zero)
70 Print "-(1/0) equals: ";
80 Print Suffix(-(1/0)) ' as -1.#INF (negative underflow) (division by zero)