tfloat2.nim 294 B

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