Move floating point check to a new FormatTools method