Difference between revisions of "ToBase Command"

From GeoGebra Manual
Jump to: navigation, search
(command syntax: changed [ ] into ( ))
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|algebra}}
{{command|algebra}}
+
;ToBase( <Number>, <Base> )
;ToBase[ <Number>, <Base> ]
 
 
:Converts given number into different [[w:Radix|base]]. The base must be between ''2'' and ''36''. The number must be an integer.
 
:Converts given number into different [[w:Radix|base]]. The base must be between ''2'' and ''36''. The number must be an integer.
 
:{{Examples|1=<div>
 
:{{Examples|1=<div>
:*<code>ToBase[255,16]</code> returns "FF".
+
:*<code>ToBase(255,16)</code> returns "FF".
:*<code>ToBase[256, 2]</code> returns "100000000".</div>}}
+
:*<code>ToBase(256, 2)</code> returns "100000000".</div>}}
 
{{Note|1=See also [[FromBase Command|FromBase]] command.}}
 
{{Note|1=See also [[FromBase Command|FromBase]] command.}}

Latest revision as of 13:05, 5 October 2017


ToBase( <Number>, <Base> )
Converts given number into different base. The base must be between 2 and 36. The number must be an integer.
Examples:
  • ToBase(255,16) returns "FF".
  • ToBase(256, 2) returns "100000000".
Note: See also FromBase command.
© 2024 International GeoGebra Institute