Re: FW: ceiling function
Posted by
Krs5 on
Aug 08, 2011; 9:15am
URL: http://imagej.273.s1.nabble.com/ceiling-function-tp3683582p3683584.html
Hi Andrew and Johannes
Yes, of course. Thanks.
I guess it is the Monday morning bug...
Kees
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Andrew James Bell
Sent: 08 August 2011 09:47
To:
[hidden email]
Subject: Re: FW: ceiling function
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