-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add bignum
feature
#29
Comments
I'm all for it. Are you interested in implementing this? |
It is big decimal (fixed-point), which might not be practical to store QuickJS BigFloat (floating point), as numbers like |
Yes, want to try to add |
Happy to help if you run into any questions. |
Ah yeah,
I thought |
@theduke It turns out that only functions for converting The structure |
I've experimented with enabling
Bignum
extension (seems to be working just fine, can be enabled just by changing static lib name in Rust flags fromquickjs
toquickjs.bn
). However I'm not sure what would be the correct types to map.My idea is to have
num-bigint
feature that would usenum-bigint
crate to store values from JavaScriptBigInt
, which is currentlystage3
and implemented by major browsers. At the same time I think maybeQuickJS
'sBigFloat
can be ignored for now, as it is something non-standard, and also I haven't found a crate that would be a good fit to storeBigFloat
values in Rust.The text was updated successfully, but these errors were encountered: