KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q41086: IEEE Number Range Correction for QB 4.0 "Learning and Using"

Article: Q41086
Product(s): See article
Version(s): 4.00 4.00b
Operating System(s): MS-DOS
Keyword(s): ENDUSER | DOCERR B_BasicCom | mspl13_basic
Last Modified: 17-FEB-1989

The range for IEEE single and double precision numbers is correct in
the "QuickBASIC 4.0: BASIC Language Reference" manual (Page 16), but
is incorrect in the "QuickBASIC 4.0: Learning and Using QuickBASIC"
manual (Page 248).

The IEEE floating-point ranges on Page 248 of the following manuals
are incorrect:

1. "Microsoft QuickBASIC: Learning and Using" for QuickBASIC
   Versions 4.00 and 4.00b.

2. "Microsoft BASIC Compiler: Learning and Using QuickBASIC" for
   BASIC Compiler Versions 6.00 and 6.00b for MS-DOS and MS OS/2.

The IEEE number range limits on Page 16 of the "BASIC Language
Reference" for QuickBASIC Versions 4.00 and 4.00b and BASIC compiler
Versions 6.00 and 6.00b are correct (and agree with Page 337 of the
"Programming in BASIC" manual for QuickBASIC Version 4.50).

The following is a sample test program:

' This program shows that the single precision limit as k goes to
' zero is k=1.40E-45. Change j# to j! to show the 3.40E+38 limit
' for single precision j!.
DEFSNG A-Z
j# = 1E+36
t:
j# = j# * 1.1
k = 1 / j#
PRINT j#, k
IF k = 0 THEN STOP
GOTO t

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.