home *** CD-ROM | disk | FTP | other *** search
- \ Anwser for problem 3.7 by Dickson Cheng 04/04/90 21:06:40.95
-
- \ Each definitions ended with DECIMAL so than the system will change
- \ back to DECIMAL BASE.
-
- \ " . " is already defined to display the top number in DECIMAL.
-
-
- : BINARY ( -- )
- 2 BASE ! ;
-
- : .H ( n -- )
- HEX . DECIMAL ;
-
- : U.H ( n -- )
- HEX U. DECIMAL ;
-
- : .O ( n -- )
- OCTAL . DECIMAL ;
-
- : U.O ( n -- )
- OCTAL U. DECIMAL ;
-
- : .B ( n -- )
- BINARY . DECIMAL ;
-
- : U.B ( n -- )
- BINARY U. DECIMAL ;
-
-