Added guard for the case when floats are disabled and doubles are enabled.