isNumeric
Syntax | isNumeric(str) | Package |
|
Alias |
| Pkg Usage |
|
Description
Returns "true" if the provided argument stris actually a number.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
str | String | Yes | Specifies a character expression. |
Return Type
Boolean (true/false)
Examples
Example 1
wret = isNumeric("2345");
print(wret);Print true
Example 2
wret = isNumeric("-2345.678");
print(wret);Print true
Example 3
wret = isNumeric("2345.678abcd");
print(wret);Print false