Login  Register

Re: division returning an integer

Posted by Filip Rooms on Sep 06, 2005; 12:47pm
URL: http://imagej.273.s1.nabble.com/division-returning-an-integer-tp3704919p3704920.html

On 9/5/05, Rafael Carazo-Salas <[hidden email]> wrote:
> Hi all a VERY very basic question .  How can I perform a division that
> will return to me the integer result of it for example return 22 when I
> divide 45 by 2 and where can I find a manual that answers this sort of
> reall basic questions for ImageJ ?  Thank you in advance .

Since Java is much like C (at least for these basic instructions) and C++, you
could try any programming tutorial on these languages. Some interesting
reference under *nix systems (linux, unix, irix, ...) are the man
pages. Then you can type
"man sin" and get information how to use the sine function...

An interesting link is http://www.mindview.net/Books/TIJ/, where the
free e-book "Thinking in Java" by Bruce Eckel can be downloaded.

Kind regards,

Filip Rooms