Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

exact-round returns a rounded number. This one rounds up or down as appropriate.

Parameter Description
x Number to be rounded

Example

Example 1: Round a number

> (exact-round 3.1)
3
> (exact-round 3.99)  
4
Clone this wiki locally