pow (Function)

Signature: pow(x: t0, y: t0) -> t0

Description: x raised to y, C pow semantics: pow(0.0, 0.0) is 1.0, a negative base needs an integer exponent, and an overflow yields infinity — never a fault.

Parameters

  • x (t0): The base
  • y (t0): The exponent

Returns: t0

Example

print(pow(2.0, 10.0))  // 1024.0
print (pow (2.0, 10.0))  // 1024.0