sema-docs 1.26.0

Canonical structured documentation for Sema builtins/special forms; powers LSP hover/completion and REPL apropos
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
---
name: "math/round-to"
module: "math"
section: "Rounding"
---

Round a number to `places` decimal places, returning a float. (The core `round` only rounds to a whole integer.)

```sema
(math/round-to 3.14159 2)   ; => 3.14
(math/round-to 0.46666 3)   ; => 0.467
```