Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why int16 for numbers? #41

Closed
nitwhiz opened this issue May 26, 2019 · 1 comment
Closed

Why int16 for numbers? #41

nitwhiz opened this issue May 26, 2019 · 1 comment

Comments

@nitwhiz
Copy link

nitwhiz commented May 26, 2019

Isn't js using up to 50ish bits for numbers?
All bit-operations use 32 bit, so why not int32?

@andrei-markeev
Copy link
Owner

because the main goal of this project is to support low power microcontrollers, and there are some 16-bit microcontrollers out there that don't support 32 bit numbers at all. JavaScript of course operates mainly on 32-bit numbers (and 64-bits are also supported in later versions of standard).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants