Work around broken floating point limits on some systems.