summary refs log blame commit diff stats
path: root/tests/accept/run/tfloat1.nim
blob: 89911dd614e7b23514cd3aef61c065debb35d65c (plain) (tree)
1
2
3
4
5
6
7
8







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