Join Nostr
2025-02-11 20:07:26 UTC

npub1tu…p9wu4 on Nostr: Okay. I'm going nuts: some math with very big numbers isn't consistent across ...

Okay. I'm going nuts: some math with very big numbers isn't consistent across languages.

What am I missing here?

In #Javascript:
(36342608503257322 % 4294967296) == 3993778408

In #OpenSCAD:
(36342608503257322 % 4294967296) == 3993778408

In #Python:
(36342608503257322 % 4294967296) == 3993778410

in #Ruby :
(36342608503257322 % 4294967296) == 3993778410

Can anyone explain why the result is off by 2?