tfloat2.nim 317 B

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