Syntax:
Then: xx=BASE(expr,inbase,outbase)
Then: xx=BASE(expr,inbase)
where "expr" is the number specified in "inbase"
"outbase" is the output base.
If outbase is not specified, 10 is used.
Return value is the result of converting expr from inbase to outbase.
NOTES : Inbase and outbase must be between 2 and 36, inclusive. Only the integer portion of all numbers is used.
Version Ref: 4.5
Description:
Converts between different bases.
Examples:
A simple decimal-to-hexadecimal converter.
Then: input popup no(8,.0) " Enter a number: "
If: no ne ""
Then: msgbox no < " decimal is " < base(no, " 10 " , " 16 " ) < " hexadecimal. "