Login  Register

Re: FW: ceiling function

Posted by dscho on Aug 08, 2011; 9:12am
URL: http://imagej.273.s1.nabble.com/ceiling-function-tp3683582p3683586.html

Hi Kees,

On Mon, 8 Aug 2011, Straatman, Kees R. (Dr.) wrote:

> Indeed. I was using
>
> x=5.5;

Now x is 5.5.

> x = -floor(-x);

This is where x becomes 6.

> y = floor(x);

Rounding 6 down yields 6 ;-)

Ciao,
Johannes