Power function bug

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Styro
Miner
Miner
Posts: 46
Joined: Mon Jan 18, 2010 4:55 pm
Location: Utah, USA

The power function does not correctly calculate numbers to the power of 0. They return 0 instead of 1.

Here is my code:

Code: Select all

(dbgLog "2 to the 0: " (power 2 0))
Here is the output:

Code: Select all

02/24/2010 14:08:12	2 to the 0: 0
Post Reply