Closed HuangPZ closed 2 years ago
The previous implementation has the following bug: when the input is a float type and is negative, the output would be zero. E.g.,
floatToMyType(-2.2)
returns 0, which is not intended behavior.
The previous implementation has the following bug: when the input is a float type and is negative, the output would be zero. E.g.,
floatToMyType(-2.2)
returns 0, which is not intended behavior.