Share via


Visual Basic Concepts

Remove Floating-Point Error Checks

Turns off error checking to insure that numeric values assigned to floating-point variables are within the correct range for the data types, and that division by zero or other invalid operations do not occur.

By default in Visual Basic, a check is made on every calculation to a variable with a floating point data types (Single and Double) to be sure that the resulting value is within range of that data type. If the value is of the wrong magnitude an error will occur. Error checking is also performed to determine if division by zero or other invalid operations are attempted. Selecting this option turns off this error checking which can speed up floating point calculations. If data type capacities are overflowed, however, no error will be returned and incorrect results may occur.