Single Precision Numbers Have 1 to 7 Digits; Double Have 8+ (41149)



The information in this article applies to:

  • Microsoft QuickBASIC 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBASIC 4.5
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b

This article was previously published under Q41149

SUMMARY

The documentation below should be changed to say that a constant is single precision if it has fewer than eight digits and is double precision if it has eight or more digits.

This correction applies to the following documentation:
  1. Page 24 of "Microsoft QuickBasic: Basic Language Reference" manual for Versions 4.00 and 4.00b for MS-DOS.
  2. Page 24 of "Microsoft Basic Compiler: Basic Language Reference" for Versions 6.00 and 6.00b for MS OS/2 and MS-DOS. (Note: This is the same as QuickBasic's language reference manual.)
  3. Page 18 of the "Microsoft QuickBasic: Basic Language Reference" manual for QuickBasic Version 4.50. This manual must be ordered separately from the Version 4.50 package.
  4. The QuickBasic Version 4.50 QB Advisor on-line help system, when you select "Help - Contents - Data Types - Constants".

MORE INFORMATION

The above pages INCORRECTLY state that a number is single precision if it has fewer than 15 digits and is double precision if it has more than 15 digits.

This documentation error was corrected in the "Microsoft Basic 7.0: Language Reference" manual of Microsoft Basic PDS Version 7.00 for MS-DOS and MS OS/2.

The above products follow the IEEE standard format for storage of floating-point numbers.

Modification Type:MinorLast Reviewed:1/8/2003
Keywords:KB41149