Keep exponential() from returning Infinity.