UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | String Verbs > string.isNumeric

string.isNumeric

Syntax string.isNumeric (character)

Params character is a single character enclosed in single or double quotation marks.

Action Tells whether the specified character is a digit or not.

Returns True if the character is a digit from 0 to 9.

Examples string.isNumeric ('1')

   » true

string.isNumeric ("123")

   » error: Can't coerce the string "123" into a character because it isn't exactly one character long.

string.isNumeric ('a')

   » false

string.isNumeric ('&')

   » false

Errors Attempting to assign a multi-character string as character results in an error because Frontier cannot coerce a multiple-character string to be a character.

Notes

See Also string.isAlpha

string.isPunctuation

Prev | Next | String Verbs > string.isNumeric

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X