tfloat1.nim 291 B

12345678910111213
  1. discard """
  2. outputsub: "Error: unhandled exception: FPU operation caused an overflow [FloatOverflowDefect]"
  3. exitcode: "1"
  4. """
  5. # Test new floating point exceptions
  6. {.floatChecks: on.}
  7. var x = 0.8
  8. var y = 0.0
  9. echo x / y #OUT Error: unhandled exception: FPU operation caused an overflow