Project

General

Profile

$isnumber » History » Revision 2

Revision 1 (Per Amundsen, 12/01/2021 11:49 PM) → Revision 2/5 (Per Amundsen, 12/02/2021 02:06 AM)

_Added in 4.2_ 

 *$isnumber(text [, cdens])* 

 Returns [[$true]] if the text is a number, otherwise [[$false]]. 

 *Parameters* 

 c cdens - Enables 's' and 'd', partial TODO 
 d - Allows decimal numbers. 
 e - Allows 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>