Added a special case for the constant power.
If the power is 0, we want to print 1.0 rather than 1e0