num-complex icon indicating copy to clipboard operation
num-complex copied to clipboard

Formats floating-point negative zero correctly

Open PaulXiCao opened this issue 2 months ago • 0 comments

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.

PaulXiCao avatar Oct 26 '25 21:10 PaulXiCao