Files
Nim/tests/tfloat2.nim
2009-12-14 01:38:05 +01:00

9 lines
180 B
Nim
Executable File

# 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]