# breaking: Add positional, precision and width support to std.fmt · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/11526b6e9da75ac682e59fbc2a37a738b8a23d6f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 11526b6e9da75ac682e59fbc2a37a738b8a23d6f

Requested commit: 11526b6e9da75ac682e59fbc2a37a738b8a23d6f

Commit: 11526b6e9da75ac682e59fbc2a37a738b8a23d6f

Tree: 569edb8e4fc752b6486d049d36a6062854813343

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

```
breaking: Add positional, precision and width support to std.fmt

This removes the odd width and precision specifiers found and replacing
them with the more consistent api described in #1358.

Take the following example:

    {1:5.9}

This refers to the first argument (0-indexed) in the argument list. It
will be printed with a minimum width of 5 and will have a precision of 9
(if applicable).

Not all types correctly use these parameters just yet. There are still
some missing gaps to fill in. Fill characters and alignment have yet to
be implemented.

```

## Parents

- [381c6a38b145665a22440f7aa816f0ddd9b70ee5](https://git.cafe/gitcafe/zig/commit/381c6a38b145665a22440f7aa816f0ddd9b70ee5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/11526b6e9da75ac682e59fbc2a37a738b8a23d6f?format=markdown)
