mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
9 lines
178 B
Nim
9 lines
178 B
Nim
# Test new floating point exceptions
|
|
|
|
{.floatChecks: on.}
|
|
|
|
var x = 0.8
|
|
var y = 0.0
|
|
|
|
echo x / y #OUT Error: unhandled exception: FPU operation caused an overflow [EFloatOverflow]
|