quchen / prettyprinter

A modern, extensible and well-documented prettyprinter.
BSD 2-Clause "Simplified" License
293 stars 34 forks source link

Pretty-print floats and doubles efficiently. #249

Open vmchale opened 6 months ago

vmchale commented 6 months ago

The bytestring library now implements a fast algorithm.

By using doubleDec to implement the Pretty instance for Double, it would not change the behavior and it would give better performance.

Thank you for your library! Vanessa McHale