next up previous

12.5.2.12 Round

The round function rounds its only argument (which should be a numeric expression) toward the closest integer. If the argument is exactly between two integers, it is rounded down. The return value of this function is an integer.

Syntax

(round <numeric-expression>)

Example

CLIPS> (round 3.6)
4
CLIPS>


next up previous