Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

J2ME in java

  Asked By: Gin    Date: Aug 10    Category: Java    Views: 491
  

I'm developing a application for mobile phones, I need "double" variable but
it's not exists int Midapi 1.0.
Please show me a way.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Richie Smith     Answered On: Aug 10

There is no double  variable in midp1 or even midp2.

But if u need to do this i think you should deal with the number as string and
use the substring fuction and calculate your number and then you conact it
again.

 
Answer #2    Answered By: Emma Brown     Answered On: Aug 10

We used two integer values the first one was the int  value the second
was the floating point value. My understanding from the hotspot team is
that two ints is about as much processor time as using doubles anyway.

 
Didn't find what you were looking for? Find more on J2ME in java Or get search suggestion and latest updates.




Tagged: