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

整数演算のサポート #588

Open
marihachi opened this issue Mar 10, 2024 · 1 comment
Open

整数演算のサポート #588

marihachi opened this issue Mar 10, 2024 · 1 comment

Comments

@marihachi
Copy link
Contributor

marihachi commented Mar 10, 2024

JavaScriptの演算をそのまま使っているためすべて浮動小数点演算になっている。
実現できれば巨大な整数も扱えるようになりそう?

@FineArchs
Copy link
Member

内部的にBigIntを使えば比較的楽に実装できそう?
生成方法も

1234567890n // リテラル(末尾にn)
Num:int(1234567890) // 数値または文字列を関数に通す

みたいな感じでBigIntを真似すればいいですかね

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