You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, decimals aren't supported in the underlying library (openssl/bn.h) for this module, so they likely won't be added ever.
It might be possible to add this feature to node-bigint, which is based on libgmp, which does support decimals. But it would require some substantial effort.
Note that in many cases you can emulate fixed-length decimals just by calculating with integers and adding a decimal point whenever you print out the numbers.
Hello,
When using decimals they are floored to the nearest integer. Is it possible to use decimal numbers in Bignum?
Example:
The text was updated successfully, but these errors were encountered: