• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Float in J2ME

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

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic