num-complex
num-complex copied to clipboard
Formats floating-point negative zero correctly
Closes #138 .
Implemtented explicitly checking for zero values to treat floating-point zeros better. Positive and negative zeros are both treated as the same (positive) zero value.
Differentiating between both would include a larger refactoring as the current trait bound Num overlaps with the Float trait that is needed to distinguish both.