Login  Register

Re: FW: ceiling function

Posted by AJBell on Aug 08, 2011; 8:46am
URL: http://imagej.273.s1.nabble.com/ceiling-function-tp3683582p3683583.html

Hi Kees,

I had a similar issue. The second floor function is being called on the result of the first. Instead, try:

a=5.5;

x = -floor(-a);
y = floor(a);
print(x, y);

Andrew Bell
Department of Infection, Immunity and Inflammation
Maurice Shock Medical Sciences Building
University of Leicester
University Road
Leicester
LE1 9HN
United Kingdom