programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: Base never seems to change ???

From: Leon Wagner <lwagner_at_forth.com>
Date: Fri, 22 Oct 1999 15:41:27 -0700

> Date: Fri, 22 Oct 1999 01:01:22 -0400
> From: Jerry Avins <jya_at_ieee.org>
> Subject: Re: Base never seems to change ???
>
> I check the base with " BL . ". BL is the ASCII for <space>; 20 in
> hex, 32 in decimal, and 100000 in binary. You could type 33 EMIT . You
> would get a "!" in decimal, the numeral 3 in hex, and an error in
> binary. If you like, define
> : BASE? BASE @ H. ." in decimal " ;

Another easy test is BASE @ 2/ . which for DECIMAL, HEX, and OCTAL will
show 5, 8, and 4, respectively.

Leon Wagner
Senior Software Engineer
FORTH, Inc.

.
Received on Fri Oct 22 1999 - 15:41:27 PDT

This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:28 PST