You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
9007199254740992// Mantissa overflow, precision lost
103
+
9007199254740993
104
+
9007199254740993true
105
+
-9223372036854775808
106
+
-9223372036854775808
107
+
-9223372036854775808false// Overflow detected
108
+
```
109
+
110
+
For int, provides an absolute value including overflow detection.
111
+
87
112
### Stay calm and panic
88
113
89
-
There's a good case to be made that a panic is an unidiomatic but proper response. Iff you believe that there's no valid way to continue your program after math goes wayward, you can use the easier Addp, Mulp, Subp, Divp, IntToUintp, UintToIntp versions which return the normal result or panic.
114
+
There's a good case to be made that a panic is an unidiomatic but proper response. If you believe that there's no valid way to continue your program after math goes wayward, you can use the easier Addp, Mulp, Subp, Divp, IntToUintp, Absp etc, which return the normal result or panic.
0 commit comments