[ANN] Format.jl updates (many bug fixes, new features)

Format.jl has been updated to fix a number of critical bugs (that were inherited from Formatting.jl), as well as implementing new capabilities to better match Python format strings, such as ^ for center justification, allowing , or _ for separators for integers and f format floating point output, and supporting the precision argument for strings.

I would strongly recommend that anyone currently using Formatting.jl to move to Format.jl to avoid the critical bugs.

29 Likes

There’s another update to Format.jl, which implements the β€˜%’ format spec (which multiplies the value by 100, uses the β€˜f’ format, and then outputs a β€˜%’ character after, followed by any padding requested)

5 Likes