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
new BigDecimal(toncoins).multiply(BigDecimal.TEN.pow(precision)).toBigInteger();
new BigDecimal(nanoCoins).divide(BigDecimal.TEN.pow(precision), precision, RoundingMode.FLOOR);
I also discovered an Overloading method
public static BigDecimal fromNano(long nanoCoins, int scale);
Maybe you should think more carefully about adding methods.
Sincerely,
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out, I will add more rounding methods with the next release.
You are also welcome to create a PR with your changes at any time. After reviewing it I will merge it, normally this speeds up the whole process.
more Overloading methods
eg:
because not all Jetton use precision 9
eg: Tether Token for Tether USD
https://tonviewer.com/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs
It's
we must add a method by ourselves like
I also discovered an Overloading method
Maybe you should think more carefully about adding methods.
Sincerely,
The text was updated successfully, but these errors were encountered: