Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Float in J2ME  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am i blind or there is NO double in j2me?
 
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
 
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?

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!