Called pow_number in pow. Updated to handle negative power cases.