# simplify comptime floating-point @divTrunc · gitcafe/zig

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

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

Visibility: public

Requested revision: 440c1d52b4053c40c58c05116c8f6d9da8e35eed

Requested commit: 440c1d52b4053c40c58c05116c8f6d9da8e35eed

Commit: 440c1d52b4053c40c58c05116c8f6d9da8e35eed

Tree: 68de983b3b3fc8bcadaf86322428c03906547c04

Author: Ben Noordhuis

Committer: Ben Noordhuis

## Message

```
simplify comptime floating-point @divTrunc

Replace a conditional ceil/floor call with an unconditional trunc call.

```

## Parents

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

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