Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Float confusion

 
Andy Robinson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, I'm pretty new to jme and I was having trouble with floats, in that there was no support for them. I tried downloading MathFP, but that was more trouble than it was worth, so I got my hands on the Float henson Float class, available at:
http://henson.newmail.ru/j2me/Float.htm

The source of my confusion is in creating floats using mantissas and exponents as in the public Float(long value, long e) method.
Can somebody give me an simple example or point me towards one ? Specifically I'm looking to convert degrees into radians, but I'd like to know for general use.

Any help would be appreciated.
 
Jignesh Kakkad
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i had used that class. i dont have problem regarding this.
i dnt know what u were asking.
bt say if u want to make 0.1 that u need to pass
Float f = new Float(1,-10);
will give 0.1

I hope this will help u

Thanx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic