FloatLog10 returns the decimal logarithm of x which is type *big.Float.
The special cases are the same as for Log10.
Use Log10 for a more generic function that treats all types of the math/big package (*big.Int, *big.Float, *big.Rat).
IntLog10 returns the decimal logarithm of x which is type *big.Int.
The special cases are the same as for Log10.
Use Log10 for a more generic function that treats all types of the math/big package (*big.Int, *big.Float, *big.Rat).
Log10 returns the decimal logarithm of x.
x has to be of type *big.Int, *big.Float or *big.Rat.
For example, if x is of type *big.Float, FloatLog10 will be called.
Special cases are:
RatLog10 returns the decimal logarithm of x which is type *big.Rat.
The special cases are the same as for Log10.
Use Log10 for a more generic function that treats all types of the math/big package (*big.Int, *big.Float, *big.Rat).
This interface contains a function Sign common to all 3 types of the big/math package (*big.Int, *big.Float, *big.Rat).
If the type is wrong, an error will occurs.
Otherwise, a same snippet of code can be used for 3 different types (used in Log10).