NO87 Environment Variable Echoed to Screen When Run (60964)



The information in this article applies to:

  • Microsoft QuickBASIC 2.0
  • 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
  • Microsoft Basic Professional Development System for MS-DOS 7.0
  • Microsoft Basic Professional Development System for MS-DOS 7.1

This article was previously published under Q60964

SUMMARY

The QB.EXE and QBX.EXE environments echo to the screen the string stored in the environment variable NO87. This is to notify you whether or not the math coprocessor (if one exists) will be used by these environments in floating-point calculations. NO87 must be set to null if the coprocessor is to be used; any other string value prevents QuickBasic or Basic Professional Development System (PDS) from using the coprocessor. To set the NO87 environment variable, execute the following statement from the MS-DOS command prompt:

set NO87=[string-expression]

Note: Enter <string-expression> only if the coprocessor is not to be used.

This information applies to Microsoft QuickBasic versions 4.0, 4.0b, 4.5 for MS-DOS, to Microsoft Basic Compiler versions 6.0 and 6.0b for MS-DOS, and to Microsoft Basic PDS versions 7.0 and 7.1 for MS-DOS. Furthermore, .EXE files compiled in all Microsoft languages that use an IEEE emulation math package (Basic, C, Pascal, FORTRAN) will exhibit the same behavior when run.

For example, enter the following at the MS-DOS command prompt:

set NO87=OFF



Then run QB.EXE (or QBX.EXE). The word "OFF" will be displayed on the next line.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:KB60964