This doesn't seem like a big problem to me surely Java has some function which ... Peter, I printed the output using the Math.round approach.
www.coderanch.com