Project

General

Profile

$base » History » Revision 3

Revision 2 (Per Amundsen, 02/23/2014 12:24 PM) → Revision 3/10 (Per Amundsen, 08/05/2015 11:18 PM)

_Added in 1.9.0_ 

 *$base(N,inbase,outbase,zeropad,precision)* 

 Converts number N from inbase to outbase. The last two parameters are optional. 

 *Parameters* 

 N - The number to convert. 
 inbase - The base to convert from. 
 outbase - The base to convert to. 
 zeropad - Pad numbers Number of leading zero's to this length. add. 
 precision - TODO 

 *Example* 

 <pre> 
 ;Returns F 
 //echo -ag $base(15,10,16) 

 ;Returns 1.8 
 //echo -ag base(1.5,10,16) 

 ;Returns 002 
 //echo -ag $base(2,10,16,3) 
 </pre>