Files
Nim/tests/tfloat2.nim
2010-02-14 00:29:35 +01:00

9 lines
180 B
Nim

# Test new floating point exceptions
{.floatChecks: on.}
var x = 0.0
var y = 0.0
echo x / y #OUT Error: unhandled exception: FPU operation caused a NaN result [EFloatInvalidOp]