![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

David Rossi asks:
> Why when I execute a base changing word like HEX, or OCTAL, the number
> stored at BASE never changes from 10?
This is because 10 is always the representation of B in
base B -- no matter what B is. 10 represents 2 in base 2,
it represents 3 in base 3, etc.
Once you change the base, all input and output numbers are
represented in the new base. So BASE @ . will print the current
base -- IN THE CURRENT BASE. You will always see 10.
.
Received on Thu Oct 21 1999 - 13:29:38 PDT
This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:28 PST