# std.fmt.parse_float: Fix exponent calculation · gitcafe/zig

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

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

Visibility: public

Requested revision: 163a8e98bc04ea955ee54d5905436ffac34c93a2

Requested commit: 163a8e98bc04ea955ee54d5905436ffac34c93a2

Commit: 163a8e98bc04ea955ee54d5905436ffac34c93a2

Tree: 693a8924d1d910ddeb3906e3ea49824e58e08f50

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

```
std.fmt.parse_float: Fix exponent calculation

This was incorrectly translated as a u64. binary_exponent is an
unadjusted value so can be negative. In becomes unconditionally positive
when adding the bias.

```

## Parents

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

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