KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q41149: Single Precision Numbers Have 1 to 7 Digits; Double Have 8+

Article: Q41149
Product(s): See article
Version(s): 4.00 4.00b 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | docerr B_BasicCom SR# S890208-209 | mspl13_basic
Last Modified: 12-DEC-1989

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".

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.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.