LoginSignup
3
0

More than 3 years have passed since last update.

Elm 0.18だとゼロ除算が実行例外になる

Last updated at Posted at 2019-07-30

0.18だとこれ実行時例外になるので注意です

> 100 % 0
Error: Cannot perform mod 0. Division by zero error.

0.19ならOK

> remainderBy 0 100
NaN : Int

でもNaNかぁ...><

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0