I couldn't find anything in the API. Converting the number to a math/big.Int
and back is not an option because the fractional component is significant to my calculation.
I'll end up repeatedly multiplying if there's no API, but that's a dissatisfying solution (math/big.Int.Exp
is just O(log(n))
) which might not be practical when I run into this problem again.
Thanks!