Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Float in J2ME

 
Henry Karpynskyi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am i blind or there is NO double in j2me?
 
Michael Jaeger
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you are not blind. There are no floating point types in MIDP. As a work around you can use the MathFP package from http://www.jscience.net/ or wait for MIDP 2.0 which will have support for floats and doubles.
You may want to take a look at http://wireless.java.sun.com/midp/ttips/fixpoint/
Cheers
Michael
 
Henry Karpynskyi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Jaeger:
No, you are not blind. There are no floating point types in MIDP. As a work around you can use the MathFP package from http://www.jscience.net/ or wait for MIDP 2.0 which will have support for floats and doubles.
You may want to take a look at http://wireless.java.sun.com/midp/ttips/fixpoint/
Cheers
Michael

Thnak you
 
Nikolay Klimchuk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use Float class from J2ME section of my site http://henson.newmail.ru
Originally posted by Henry Karpynskyi:
Am i blind or there is NO double in j2me?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic