why does it compile without giving an error . Doesnt 1/3 produce a double no (0.3333) and thus it would be a loss of precision to push it into an int ?
Joined: Aug 03, 2002
No it does not (give 0.33333). Do you have any Java books? If not there are some free ones available, and excellent tutorials are available here on JR. You may have to read some sections several times to get some topics clear. If you are really, really stuck then please repost. -Barry [ August 17, 2002: Message edited by: Barry Gaunt ]