validnumber(
validnumber(
VALUE
)

The validnumber( function checks to see if a numeric value is valid.

Parameters

This function has one parameter:

value – floating point value or expression

Description

This function checks to see if a value is a valid number. What is an invalid number, you ask? Some examples would include anything divided by zero or the square root of a negative number.

    validnumber(5/2) ☞ true
    validnumber(5/0) ☞ false
    validnumber(sqr(8)) ☞ true
    validnumber(sqr(-8)) ☞ false

Note: The nan( function (short for not a number) is the opposite of validnumber(, it returns false if the value is valid, true 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).
- nan( -- checks to see if a numeric value is invalid.
- 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.

History

Version | Status | Notes
10.0 | New | New in this version