Difference between revisions of "FromBase Command"
From GeoGebra Manual
Line 3: | Line 3: | ||
;FromBase[ "<Number as Text>", <Base> ] | ;FromBase[ "<Number as Text>", <Base> ] | ||
:Converts given number from given [[w:Radix|base]] into decimal base. The base must be between 2 and 36. The number must be an integer. | :Converts given number from given [[w:Radix|base]] into decimal base. The base must be between 2 and 36. The number must be an integer. | ||
− | {{Example|1=<code>FromBase["FF",16]</code> returns 255. <code>FromBase["100000000",2]</code> returns 256}} | + | :{{Example|1=<code>FromBase["FF",16]</code> returns 255. <code>FromBase["100000000",2]</code> returns 256}} |
− | {{Note|1=See also [[ToBase Command|ToBase]] command}} | + | :{{Note|1=See also [[ToBase Command|ToBase]] command}} |
Revision as of 12:09, 10 July 2012
This page is about a feature that is supported only in GeoGebra 4.2. |
- FromBase[ "<Number as Text>", <Base> ]
- Converts given number from given base into decimal base. The base must be between 2 and 36. The number must be an integer.
- Example:
FromBase["FF",16]
returns 255.FromBase["100000000",2]
returns 256
- Note: See also ToBase command