Robuster size checking for floating point types.