Project

General

Profile

$isnumber » History » Version 3

Per Amundsen, 12/02/2021 02:07 AM

1 1 Per Amundsen
_Added in 4.2_
2
3
*$isnumber(text [, cdens])*
4
5
Returns [[$true]] if the text is a number, otherwise [[$false]].
6
7
*Parameters*
8
9 2 Per Amundsen
c - Enables 's' and 'd', partial TODO
10
d - Allows decimal numbers.
11 3 Per Amundsen
e - Allows scientific (exponential) notations.
12 2 Per Amundsen
n - Allows regular numbers.
13
s - Allows leading + and minus signs.
14 1 Per Amundsen
15
*Example*
16
17
<pre>
18
; Returns $false
19
//echo -ag $isnumber(abc)
20
21
; Returns $true
22
//echo -ag $isnumber(555)
23
</pre>