# Differences

This shows you the differences between two versions of the page.

Both sides previous revision Previous revision | Next revision Both sides next revision | ||

manual:chapter3:reals [2017/06/17 13:38] smartin [Numbers] |
manual:chapter3:reals [2019/06/24 13:16] claudio [Numbers in other bases] |
||
---|---|---|---|

Line 21: | Line 21: | ||

==== Numbers in other bases ==== | ==== Numbers in other bases ==== | ||

- | Numbers in different bases can be entered by preceeding the value with a ''#'' and a trailing letter to indicate the base (''b'' = binary, ''o'' = octal, ''d'' = decimal, ''h'' = hex, note that the trailing letter is case insensitive). Arithmetic can be done on numbers in different bases with the result displayed as the base of the first argument. Only exact numbers in the range $-2^{63}$ to $2^{63}-1$ can be expressed in multiple bases. Outside this range (or approximate numbers) will be switched to decimal. | + | Numbers in different bases can be entered by preceeding the value with a ''#'' and a trailing letter to indicate the base (''b'' = binary, ''o'' = octal, ''d'' = decimal, ''h'' = hex, note that the trailing letter is case insensitive). Arithmetic can be done on numbers in different bases with the result displayed as the base of the first argument. Only exact numbers in the range $-2^{63}$ to $2^{63}-1$ can be expressed in multiple bases. Outside this range will be switched to decimal. |

Here are example arithmetic operations in bases other than 10: | Here are example arithmetic operations in bases other than 10: |