# fmt: fix f80 hex formatting · gitcafe/zig

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

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

Visibility: public

Requested revision: 55c5da1b205dc5eddd2749381caacf28bea6f90e

Requested commit: 55c5da1b205dc5eddd2749381caacf28bea6f90e

Commit: 55c5da1b205dc5eddd2749381caacf28bea6f90e

Tree: 785c19473b5910b3419b91745500df9971d8e0fe

Author: Jacob Young

Committer: Andrew Kelley

## 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/55c5da1b205dc5eddd2749381caacf28bea6f90e?format=markdown)
