BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-22-2004, 05:55 AM   #1 (permalink)
New Member
 
Join Date: Oct 2004
Location: Montpellier
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I do that without float or double ?

Please Login to Remove!

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
Offline  
Old 10-22-2004, 09:03 AM   #2 (permalink)
New Member
 
Join Date: Oct 2004
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could try 500/2 and just move the decimal over when you convert to string....
Offline  
Old 10-22-2004, 09:05 AM   #3 (permalink)
New Member
 
Join Date: Oct 2004
Location: Montpellier
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Offline  
Old 10-24-2004, 04:59 PM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2004
Posts: 60
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Cheers,
Andrew
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.