# Difference between revisions of "ToBase Command"

From GeoGebra Manual

Line 2: | Line 2: | ||

{{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. |

− | :{{Example|1=<code>ToBase[255,16]</code> returns "FF" | + | :{{Example|1=<code>ToBase[255,16]</code> returns "FF", <code>ToBase[256, 2]</code> returns "100000000"}} |

− | |||

:{{Note|1=See also [[FromBase Command|FromBase]] command}} | :{{Note|1=See also [[FromBase Command|FromBase]] command}} |

## Revision as of 11:55, 10 July 2012

This page is about a feature that is supported only in GeoGebra 4.2. |

- ToBase[ <Number>, <Base> ]
- Converts given number into different base. The base must be between
*2*and*36*. The number must be an integer. **Example:**`ToBase[255,16]`

returns "FF",`ToBase[256, 2]`

returns "100000000"

**Note:**See also FromBase command