Project

General

Profile

$isnum » History » Version 2

Per Amundsen, 02/23/2023 01:55 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 2 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| c | Enables 's' and 'd', partial TODO |
14
| d | Allows decimal numbers. |
15
| e | Allows scientific (exponential) notations. |
16
| n | Allows regular numbers. |
17
| s | Allows leading + and minus signs. |
18 1 Per Amundsen
19
*Example*
20
21
<pre>
22
; Returns $false
23
//echo -ag $isnum(abc)
24
25
; Returns $true
26
//echo -ag $isnum(555)
27
</pre>