mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
9 lines
180 B
Nim
Executable File
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]
|