savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
153 stars 12 forks source link

Fix erroneous "double-dot" output in `FloatingPoint.Format`. #438

Closed jemc closed 1 year ago

jemc commented 1 year ago

Prior to this commit, a number like 0.5 would be formatted with two dots, as: 0..5

This commit fixes that issue by adding an additonal condition for printing the 2nd dot.

This commit also removes a no-longer-used dependency of FloatingPoint.Format types on Integer.Format.Decimal. Apparently they referenced that type earlier in their implementation, but they no longer do, so I've removed the reference.