bc.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
BASIC Constants
                                             ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
     Syntax: digits                     Integer, default radix
             fixed-point-number[#|!]    Single or double, fixed-point format,
                                        decimal radix
             floating-point-number[#|!] Single or double, floating-point
                                        format, decimal radix
             &Odigits                   Integer, octal radix
             &digits                    Integer, octal radix (alternate
                                        format)
             &Hdigits                   Integer, hexadecimal radix
 
     Constants can be entered in the Command, Watch, and Local windows as
     integer, long integers, single-precision, or double-precision data
     objects. Constants are evaluated according to the rules of the BASIC
     language. For information about the format and ranges of constants in
     BASIC, see ◄BASIC Literal Constants►.
 
     By default, CodeView displays numbers in decimal format. This format
     is referred to as the system radix. If you change the system radix to
     octal or hexadecimal, you cannot enter fixed-point or floating-point
     numbers. For information on how to change the system radix, see the
     CodeView ◄Radix command►.
 
     You can use the BASIC long-integer type identifier (&) to store an
     integer constant as a long (4-byte) integer, rather than as a short
     (2-byte) integer.
 
     If the system radix is set to hexadecimal, it is possible to enter a
     value or argument that could be interpreted either as a symbol or as
     a hexadecimal number. CodeView resolves this ambiguity by first
     searching for a symbol with that name. If no symbol is found, CodeView
     interprets the value as a number.
 
     To enter a value as a number when a symbol exists with the same name,
     use the hexadecimal format (&Hdigits). For example, to enter the
     hexadecimal number ABC when your program contains a symbol named ABC,
     enter it as &HABC.
                                    -♦-