Project

General

Profile

$isnum » History » Version 1

Per Amundsen, 05/09/2022 07:36 PM

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