bc.pow

Power

Prototype

n = bc.pow (a, b)

Description

Returns a to the power b. For example:

print (bc.number (2) ^ 100)  --> 1267650600228229401496703205376
print (bc.pow (2, 100))      --> 1267650600228229401496703205376

Lua functions

Topics