# fmt: fix f80 hex formatting · gitcafe/zig

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

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

Visibility: public

Requested revision: 458233a68478fae94c340b7f1814efde493ac4d7

Requested commit: 458233a68478fae94c340b7f1814efde493ac4d7

Commit: 458233a68478fae94c340b7f1814efde493ac4d7

Tree: 785c19473b5910b3419b91745500df9971d8e0fe

Author: Jacob Young

Committer: Jacob Young

## Message

```
fmt: fix f80 hex formatting

These ifs were missing a case for f80 which should have shifted by one,
but we can just compute the correct value instead.  Also, we want the
fractional bits to be a multiple of four, not the mantissa bits, since
the mantissa could have a leading one which we want to be separated.

```

## Parents

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

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