float/double regression fix and tests