math.pow10() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.65 is the most recent stable version of Flux.

The math.pow10() function returns 10**n, the base-10 exponential of n.

Output data type: Float

import "math"

math.pow10(n: 3)

// Returns 1000



The value used in the operation.

Data type: Integer

Special cases

math.pow10(n: <-323) // Returns 0
math.pow10(n: >308)  // Returns +Inf