Fixing exponent issues on ruby 1.8.