< Back to IRCAM Forum

Round to double float


I am working with pixel library and working on patches for RGBa adjustments and picture manipulation. Therefore I need to round numbers to double floats. How do I do it?

I hope someone can help me here.

All the best!


Hi Aliser,

If i am not mistaken, you can set the variable read-default-float-format to double-float like that (standard CL setf) :

> (setf  *read-default-float-format*  'double-float)

That is, in a lisp file, or in a lispfunction like this: