# add setFloatMode builtin and std.math.floor · gitcafe/zig

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

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

Visibility: public

Requested revision: 29b488245daa9210ed9b5e1ffb7290024677f0db

Requested commit: 29b488245daa9210ed9b5e1ffb7290024677f0db

Commit: 29b488245daa9210ed9b5e1ffb7290024677f0db

Tree: 7bcee7504f7caa5f72c8d83bbf066aa494306a70

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add setFloatMode builtin and std.math.floor

 * skip installing std/rand_test.zig as it's not needed beyond running
   the std lib tests
 * add std.math.floor function
 * add setFloatMode builtin function to choose between
   builtin.FloatMode.Optimized (default) and builtin.FloatMode.Strict
   (Optimized is equivalent to -ffast-math in gcc)

```

## Parents

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

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