go math.Pow10()
Pow10()方法语法
func Pow10(n int) float64
go源码对Pow10()方法的介绍:
Pow10 returns 10**n, the base-10 exponential of n.
Special cases are:
Pow10(n) = 0 for n < -323
Pow10(n) = +Inf for n > 308
golang模块math.Pow10()方法,返回10n。除此之外,Pow10(n) = 0 for n < -323;Pow10(n) = +Inf for n > 308。
math.Pow10()方法实例代码
func main() {
pow10_v := math.Pow10(2)
fmt.Println(pow10_v)
}
运行go文件,得到输出:
100