a quiz. do you use BigInt in javascript
0 Boosts
0 Likes
@wingo Don't the regular integers in Javascript already take up 64 bits?
@wingo i wanted 64bit integers for a VM
@wingo In Rust sometimes, if I need more than 128 bits.
@wingo no, because I never had to use this kind of `Int` ! 🙂
@wingo Mone calculations. We only do it for presentation purposes, duplicate BE calculations so that feedback was immediate. On the backend we use bigint for those calculations and we had a lot of 0.01 off type of errors with floats. It’s not a big deal but after sync with BE that cent will change numbers and that’s not good.
@wingo interop with Erlang ints (which are big)
@janl how do bigints show up in erlang? is it common at all to exceed the 64-bit range
@wingo because they’re better than the default numbers? I rarely want a float