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
sometimes, we have external API that returns decimal.Decimal, and we need to convert these instances to alpacadecimal.Decimal.
currently, we can do this converson via "string" (decimal.Decimal -> string -> alpacadecimal.Decimal).
but there might be more efficient way to do this via: (decimal.Decimal -> decimal.Exponent() + decimal.Coefficient() / decimal.CoefficientInt64() -> alpacadecimal.NewFromBigInt
^ requires benchmarks
The text was updated successfully, but these errors were encountered:
sometimes, we have external API that returns
decimal.Decimal
, and we need to convert these instances toalpacadecimal.Decimal
.currently, we can do this converson via "string" (decimal.Decimal -> string -> alpacadecimal.Decimal).
but there might be more efficient way to do this via: (decimal.Decimal -> decimal.Exponent() + decimal.Coefficient() / decimal.CoefficientInt64() -> alpacadecimal.NewFromBigInt
^ requires benchmarks
The text was updated successfully, but these errors were encountered: