Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: dsp-id , Previous: dolist-db , Up: D , Home: Overview

Clamps Dictionary

dround

Function

(dround num &optional (prec 2))

Return a float of num rounded to prec decimal places.

Arguments

num The number to round.
prec Non Negative Integer denoting the number of decimal places.

Examples

(dround 1/3) ; => 0.33

(dround 1/3 5) ; => 0.33333

(dround 1) ; => 1.0

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate