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

Vacuum RF Ultrasonic Cavitation BIO Face Skin Care Lifting Body Slimming Machine
$538.0
Vacuum RF Ultrasonic Cavitation BIO Face Skin Care Lifting Body Slimming Machine pictureKNF Neuberger UN035.3 Vacuum Pump 115V 60Hz, New old stock
$599.95
KNF Neuberger UN035.3 Vacuum Pump 115V 60Hz, New old stock  pictureRUBBERMAID BACKPACK VACUUM BP6Q WITH 10 REPLACEMENT FILTERS - COMMERCIAL GRADE
$161.0
RUBBERMAID BACKPACK VACUUM BP6Q WITH 10 REPLACEMENT FILTERS - COMMERCIAL GRADE picturePFEIFFER BALZERS TPH 330 TURBO PUMP WITH TCP 310 POWER SUPPLY & CABLES
$888.0
PFEIFFER BALZERS TPH 330 TURBO PUMP WITH TCP 310 POWER SUPPLY & CABLES pictureImpulse Heat Poly Sealer Wrap Plastic Bag Closer Machine Snack Vacuum Resealer
$21.08
Impulse Heat Poly Sealer Wrap Plastic Bag Closer Machine Snack Vacuum Resealer picture






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