3 ms·
I'm still holding out for an int type, I use a double about once a year but I'm completely insecure about using integer operations (e.g. div, mod, as an offset-
by SomeOldThrow 7y ago
I'm still holding out for an int type, I use a double about once a year but I'm completely insecure about using integer operations (e.g. div, mod, as an offset-based index) in javascript.
- jchw 7y agoYou can use w3c typed array stuff at least... though its obviously cumbersome. Bitwise operators also coerce to integer, so they should roughly always be OK.