• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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?

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!