C chesterm New Member Licensed User Longtime User Sep 7, 2012 #1 I have a function that calculates a variable of type double. Sometimes when the inputs to the function change drastically it will generate a Nan value into the double variable. I have tried to account for this condition with a try - catch block, but it does not seem to work for Nan. Is there a way to compare for Nan condition like the Jave isNan method?
I have a function that calculates a variable of type double. Sometimes when the inputs to the function change drastically it will generate a Nan value into the double variable. I have tried to account for this condition with a try - catch block, but it does not seem to work for Nan. Is there a way to compare for Nan condition like the Jave isNan method?
K kickaha Well-Known Member Licensed User Longtime User Sep 8, 2012 #2 Have a look at the IsNumber keyword. It checks if a string can be converted to a valid number. Upvote 0
C chesterm New Member Licensed User Longtime User Sep 8, 2012 #3 Thanks, that works for what I need. Upvote 0