# stage2: disallow \`1.e9\` and \`0x1.p9\` as float literals · gitcafe/zig

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

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

Visibility: public

Requested revision: 608bc1cbd5910ee796cc292b43db77547858bf98

Requested commit: 608bc1cbd5910ee796cc292b43db77547858bf98

Commit: 608bc1cbd5910ee796cc292b43db77547858bf98

Tree: f4fdcf061ee03ee6212f6cd373d812b463085760

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
stage2: disallow `1.e9` and `0x1.p9` as float literals

Instead require `1e9` and `0x1p9`, disallowing the trailing dot.

This change to the grammar is consistent with forbidding `1.` and `0x1.`
as float literals and ensures there is only one way to do things here.

```

## Parents

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

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