BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   How can I do that without float or double ? (http://www.blackberryforums.com/showthread.php?t=1590)

Emdis 10-22-2004 05:55 AM

How can I do that without float or double ?
 
Hi Guys,

I'm trying to develop my first application (a currency converter) and I've got a little problem as I can't use float or double type on the BB ...
I mean how can I compute for ex
5 / 2
and get 2.5 as answer, what type can I use ?

Thanks in adavance

joshrl 10-22-2004 09:03 AM

You could try 500/2 and just move the decimal over when you convert to string....

Emdis 10-22-2004 09:05 AM

Ok I've found a MathFP that is supposed to solve the double and float absence problem.
By the way I'm new to J2ME ;)
So I've the 2 jar files into my project and the compilation is ok but when I launch my application I have this error message:
Code:

Starting MyApp
Error starting MyAppxxx58; Module 'jmfp-bin-0.99' not found.

Any clue ?

Thanks in advance

berryapps 10-24-2004 04:59 PM

You'll have to include the jar file in the project itself in the JDE.

Cheers,
Andrew


All times are GMT -5. The time now is 12:30 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.