Project

General

Profile

$isnumber » History » Revision 3

Revision 2 (Per Amundsen, 12/02/2021 02:06 AM) → Revision 3/5 (Per Amundsen, 12/02/2021 02:07 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 scientific (exponential) notations. float/exponent numbers. 
 n - Allows regular numbers. 
 s - Allows leading + and minus signs. 

 *Example* 

 <pre> 
 ; Returns $false 
 //echo -ag $isnumber(abc) 

 ; Returns $true 
 //echo -ag $isnumber(555) 
 </pre>