Documentation ¶
Overview ¶
This package provides mathematical functions that are not provided by the default math/big package (like logarithm).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FloatLog10 ¶
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).
func IntLog10 ¶
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).
Types ¶
type Big ¶ added in v1.0.4
type Big interface {
Sign() int
}
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).