math.pow10() function

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

*Output data type: Float*

  1. import "math"
  2. math.pow10(n: 3)
  3. // Returns 1000

Parameters

n

The value used in the operation.

*Data type: Integer*

Special cases

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