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
- Take care of `int` -> `number` (integer to number) port when doing bitwise transformation especially `<<`. Do a `& 0xFFFFFFFF` for ints, a &0xFF for bytes.
73
75
- Take care of array initialization, in Java `new Array(N)` initializes capacity NOT size/length.
74
-
- Use `Math.floor` for any division of ints otherwise the `number` type is a floating point and keeps the numbers after the dot.
75
-
- For `float` to `int` casting use `Math.trunc`, to replicate the same effect as Java casting does.
76
+
- Use `Math.floor` for any division of `int`s otherwise the `number` type is a floating point and keeps the numbers after the dot.
77
+
- For `float`/`number` to `int` casting use `Math.trunc`, to replicate the same effect as Java casting does.
0 commit comments