BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-22-2004, 05:55 AM   #1
Emdis
New Member
 
Join Date: Oct 2004
Location: Montpellier
Posts: 5
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
joshrl
New Member
 
Join Date: Oct 2004
Posts: 5
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
Emdis
New Member
 
Join Date: Oct 2004
Location: Montpellier
Posts: 5
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
berryapps
Thumbs Must Hurt
 
Join Date: Oct 2004
Posts: 60
Default

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

Cheers,
Andrew
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


MITSUBISHI FR-A820 1.5K TFA INVERTER A500 240 V #L-220 picture

MITSUBISHI FR-A820 1.5K TFA INVERTER A500 240 V #L-220

$684.00



1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ picture

1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ

$317.00



1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ picture

1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ

$228.00



Mitsubishi FR-A540-0.75K-NA AC DRIVE INVERTER 1 HP 380-480 VAC 50/60 HZ 4.1 AMP  picture

Mitsubishi FR-A540-0.75K-NA AC DRIVE INVERTER 1 HP 380-480 VAC 50/60 HZ 4.1 AMP

$649.99



1Pcs USED A500 7.5KW 380V FR-A540-7.5K-CH frequency converter picture

1Pcs USED A500 7.5KW 380V FR-A540-7.5K-CH frequency converter

$401.02



Padded Headset for Vocollect T2, T2X, T5, SR20T, A500 w/ Adjustable Mic picture

Padded Headset for Vocollect T2, T2X, T5, SR20T, A500 w/ Adjustable Mic

$133.88







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