Project

General

Profile

Actions

Added in 4.2

$isnumber(text [, cdens])

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

Same as $isnum.

Parameters

Parameter Description
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 $isnumber(abc)

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

Updated by Per Amundsen over 1 year ago · 5 revisions

Also available in: PDF HTML TXT