nan(
VALUE
)
The nan( function checks to see if a numeric value is invalid.
Parameters
This function has one parameter:
value – floating point value or expression
Description
This function checks to see if a value is an invalid number. (The function name nan(
stands for not a number). What is an invalid number, you ask? Some examples would include anything divided by zero or the square root of a negative number.
nan(5/2) ☞ false
nan(5/0) ☞ true
nan(sqr(8)) ☞ false
nan(sqr(-8)) ☞ true
Note: The nan( function is the opposite of validnumber(, which returns true if the value is valid, false if it is invalid.
See Also
- / -- divides one numeric value by another.
- cos( -- calculates the cosine of an angle.
- degree -- tells Panorama that all angles input to and calculated in trigonometric functions are in degrees rather than radians.
- degrees2radians( -- converts an angle from degrees to radians.
- degreestoradians( -- converts an angle from degrees into radians
- info("angleunits") -- returns the current angular measurement units.
- latlongdistance( -- calculates the distance between two points on the earth (or any other sphere).
- nanerror( -- converts invalid numeric values into an error.
- nanzero( -- converts invalid numeric values into zero.
- radian -- tells Panorama that all angles in trigonometric functions should be calculated using radians rather than degrees.
- radians2degrees( -- converts an angle from radians to degrees.
- radianstodegrees( -- converts an angle from radians to degrees.
- sin( -- calculates the sine of an angle.
- sqr( -- calculates the square root of a value.
- tan( -- calculates the tangent of an angle.
- validnumber( -- checks to see if a numeric value is valid.
History
10.0 | New | New in this version |