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
I know that most majority of currencies have 100 minor units in one major or don't have a minor at all and it's okay to save their fraction (2, 0 or 3) and use them for converting:
I know that most majority of currencies have 100 minor units in one major or don't have a minor at all and it's okay to save their fraction (2, 0 or 3) and use them for converting:
But my suggestion is to be more pragmatic and remember about non-decimal currency and etc:
And if we use the number of minor units we can remove this
math.Pow10
function and the result will look like:The text was updated successfully, but these errors were encountered: