Project

General

Profile

Actions

Added in 4.3

$isnum(text [, cdens])

Returns $true if the text is a number, otherwise $false.

Same as $isnumber.

Parameters

c - Enables 's' and 'd', partial TODO
d - Allows decimal numbers.
e - Allows scientific (exponential) notations.
n - Allows regular numbers.
s - Allows leading + and minus signs.

Example

; Returns $false
//echo -ag $isnum(abc)

; Returns $true
//echo -ag $isnum(555)

Updated by Per Amundsen 5 months ago · 1 revisions

Also available in: PDF HTML TXT