# compile-time f32, f64 operations are now correctly lossy · gitcafe/zig

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

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

Visibility: public

Requested revision: 09bd4a9a8693485fa87a5f62af90540ca8ce9d47

Requested commit: 09bd4a9a8693485fa87a5f62af90540ca8ce9d47

Commit: 09bd4a9a8693485fa87a5f62af90540ca8ce9d47

Tree: 295ed2543f174d014dd85acd95181e615d2f24f8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
compile-time f32, f64 operations are now correctly lossy

previously we used the bigfloat abstraction to do all
compile-time float math. but runtime code and comptime code
are supposed to get the same result. so now if you add a
f32 to a f32 at compile time it does it with f32 math
instead of the bigfloat. float literals still get the
bigfloat math.

closes #424

```

## Parents

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

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