Project

General

Profile

Actions

$isnum » History » Revision 1

Revision 1/2 | Next »
Per Amundsen, 05/09/2022 07:36 PM


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 over 2 years ago · 1 revisions

Also available in: PDF HTML TXT