Added an exponentFits method
Changed encodeDouble to use exponentFits instead of calculating it on the spot