Thank you, I read your web page.
I am just a bit confused how to use this information. The Math funtionality
is not recognised and I have almost no experience in java.
I presently have
float MPoriginalFormat = (MP2+MDC)*1000; //110060, could show as 110059.99
// need to convert this to 110060
Use long Math. round ( double )
Thank you.
"Roedy Green" <look-> wrote in message
news:...
> On Sun, 16 May 2004 10:03:54 GMT, "Steve" <> wrote or quoted :
>
> >1. Is there a way to convert a variable .09999999 to .1?
> >
> >2. Likewise how can I convert 108229.99 to 108230.0 (it must alway be
> >rounded up and be an integer)
>
> see http://mindprod.com/jgloss/floatingpoint.html
>
> --
> Canadian Mind Products, Roedy Green.
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.