09-08-2023, 06:06 PM
Would this be a success trap for NAN. I'm not sure if the IF statement is proving the NONE existence of a valid number (ie testing for NAN) or no matter what the value of a/b they will simply be forced to their new values of 1/1. I'm looking for this algorythm to only trigger if a/b = NAN.
Code: (Select All)
a = 0
b = 0
If a / b Then
Print "Value of a/b is "; a / b
a = 1
b = 1
Print "New Value of a/b is "; a / b
End If