Actions
$base » History » Revision 2
« Previous |
Revision 2/10
(diff)
| Next »
Per Amundsen, 02/23/2014 12:24 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 - Number of leading zero's to add.
precision - TODO
Example
;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)
Updated by Per Amundsen almost 11 years ago · 2 revisions