*
The moose likes Java Micro Edition and the fly likes Floating Point for use in Commercial Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Floating Point for use in Commercial Project" Watch "Floating Point for use in Commercial Project" New topic
Author

Floating Point for use in Commercial Project

Max Simpson
Ranch Hand

Joined: Sep 23, 2004
Posts: 30
Hi,
I am working on a project and need floating point. However, MathFP can only be used for non-commercial work. I see they have a link for a license for commercial work but it does not work. Can anyone recommend something else?
Thanks!
Jason Fox
Ranch Hand

Joined: Jan 22, 2004
Posts: 114
What are you using floats for? In almost all cases, there are ways around it. Perhaps if you could post some code/ more details, I could be of assistance.
Max Simpson
Ranch Hand

Joined: Sep 23, 2004
Posts: 30
I want to make a pinball game and have some ideas that I need to try out. Happen to know of any tutorials on making a pinball game without floating point capability?
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
You can use this strategy.

Make your number * 2048 or some other big 2's power, after calculation, change it back to the original one by dividing the same factor.

Just as good as floating point number and cheap in both money and efficiency sense.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Floating Point for use in Commercial Project
 
Similar Threads
Program like ATM where person enters amount in dollars and cents but program uses int for monies
converting fractioanl value to Binary form
How to Float??
Assigning long value to float?
MP3 on J2ME??