math.pow10() 函数
math.pow10() 返回 10**n,即 n 的以10为底的指数。
函数类型签名
(n: int) => float
有关更多信息,请参见 Function type signatures。
参数
n
(必填) 指数值。
示例
返回 n 的十进制指数
import "math"
math.pow10(n: 3)// 1000.0
在map中使用math.pow10
import "math"
import "sampledata"
sampledata.int()
|> map(fn: (r) => ({r with _value: math.pow10(n: r._value)}))