| null, evaluation | Index Level | num.expression |
| Syntax | NUM( expression ) |
| Category | BASIC |
| Type | Function |
| Description |
evaluates an expression and returns 1 (true) if it is a decimal numeric. Otherwise, it returns 0 (zero), if the expression contains any non-numeric characters.
The empty, or "null" string ('') is considered to be a numeric string. The following strings are considered to be numeric, and return a "1" (true): "." (period), "-" (minus), "+" (plus), "-." (minus/period), "+." (plus/period). |
| Options | |
| See Also | Boolean Evaluation statements & functions ALPHA MATCH functions |
| Example |
loop
input number until num(number) do repeat This loop terminates when a numeric response is entered for the variable "number". |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| null, evaluation | Index Level | num.expression |