05-08-2008 08:44 PM
05-09-2008 09:23 AM
You can do this in the Watch window. Add a watch expression like the following:
var = 0.0 / 0.0
The above will result in var getting assigned to NaN. You can use similar right-hand expressions to get -Inf and +Inf. After you get the desired value, make sure you delete the watch expression before you continue program execution - this is required to prevent subsequent evaluations of the watch expression.