"gilgantic" <gi*******@yahoo.com> wrote in message
news:d6**************************@posting.google.c om...
How do you deal with floating points in J2ME? From my understanding
MIDP 1.0 does not allow you to use float or double primitives. I want
to be able to perform a calculations which give float or double
values.
Thanks
Hi.
J2ME (CLDC1.0) does not have support for floats/doubles. Do a 'google' on
"fixed point J2ME" and you'll find some free libraries that implement fixed
point numbers. The ones i've found are mainly used for games, where
precision is of a lower priority than speed. I've written (using the
BigDecimal class from J2SE as a basis), for a program that i'm writing, a
library handling fixed point values with arbitray precision for J2ME. It is
very precise but not very fast.
-- Anton.