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


CORSTAT INTEGRATED CIRCUIT EXPANDED MEMORY DIP REV. A SER. B 2711-NM3 picture

CORSTAT INTEGRATED CIRCUIT EXPANDED MEMORY DIP REV. A SER. B 2711-NM3

$174.95



New In Box SIEMENS 6ES7954-8LF03-0AA0 6ES7 954-8LF03-0AA0 Memory Card picture

New In Box SIEMENS 6ES7954-8LF03-0AA0 6ES7 954-8LF03-0AA0 Memory Card

$246.08



NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In picture

NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In

$284.00



New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC picture

New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC

$286.59



Siemens Memory Sub Module Simatic 6ES5373-0AA41 picture

Siemens Memory Sub Module Simatic 6ES5373-0AA41

$84.99



New Siemens  SIMATIC S7 Micro Memory Card 6ES7953-8LP20-0AA0 6ES7 953-8LP20-0AA0 picture

New Siemens SIMATIC S7 Micro Memory Card 6ES7953-8LP20-0AA0 6ES7 953-8LP20-0AA0

$293.09







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