Project

General

Profile

Actions

$isnumber » History » Revision 2

« Previous | Revision 2/5 (diff) | Next »
Per Amundsen, 12/02/2021 02:06 AM


Added in 4.2

$isnumber(text [, cdens])

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

Parameters

c - Enables 's' and 'd', partial TODO
d - Allows decimal numbers.
e - Allows float/exponent numbers.
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 about 3 years ago · 2 revisions

Also available in: PDF HTML TXT