/
pjs.testNumeric()
pjs.testNumeric()
The pjs.testNumeric() API provides the ability to check if a character value contains a number.
Parameters
Value
Return Value
Boolean; true if the value contains a number; false if the value does not contain a number.
Example
pjs.testNumeric("12345"); //true
pjs.testNumeric("12345A"); //false
pjs.testNumeric("55.55"); //true
pjs.testNumeric(" 55.55 "); //true
RPG Equivalent
TESTN