|
If a is non-negative:1) Do float calculation, as usual: result = a^b2) If result is less that 2^53, then convert it to integer and return integer result3) If result is above 2^63, then return float result
4) Recalculate the result using integer multiplication and return it