# wasm: fix \`div_trunc\` for floats · gitcafe/zig

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

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

Visibility: public

Requested revision: ca870aa00504accd49e7f1d2fceed1e4b8d21100

Requested commit: ca870aa00504accd49e7f1d2fceed1e4b8d21100

Commit: ca870aa00504accd49e7f1d2fceed1e4b8d21100

Tree: b4c9d80002a7017ab61bfd91dde3239850e5b025

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: fix `div_trunc` for floats

For floats we would previously only do the division, but not
the truncation for floats. This would result in incorrect values
being returned.

```

## Parents

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

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