You Are Here:

Community: Developer Discussion Boards

#1 Old How to import floor, ceil, etc with MIDP? - 2003-08-13, 23:01

Join Date: May 2003
Posts: 41
SpaceCowboy
Offline
Registered User
I wanted to use the java.math.floor() function, but whenver I tried to import the java.math package, the compiler told me it couldn't be found. I was finally able to import java.lang.math, but this has a bare minimum mathematic functions. I'm still a newb, so can someone help me with this?

SpaceCowboy
Reply With Quote

#2 Old 2003-08-14, 00:56

Join Date: Jul 2003
Posts: 19
Location: UK
GraphicReality
Offline
G4MES.net Coder
For most maths stuff you'll have to write your own routines.

MIDP 1.0 doesn't support floating point types for example, so you'll need to develop your own fixed point system, and all the needed maths functions to go with.

Vex / GraphicReality.co.uk
Last edited by GraphicReality : 2003-08-14 at 01:00.
Reply With Quote

#3 Old 2003-08-14, 02:56

Join Date: May 2003
Posts: 41
SpaceCowboy
Offline
Registered User
Oh...pain...

Ugh...Luckily my game isn't too math intensive, but it is going to make things more interesting.

Thanks for the quick response.

SpaceCowboy
Reply With Quote

#4 Old Math - 2003-08-14, 07:30

Join Date: Mar 2003
Posts: 258
Location: Moscow/Russia
Send a message via ICQ to henson2K
henson2K
Offline
Regular Contributor
Hello!

Try to use my free source math class
See http://henson.newmail.ru/j2me/Float.htm for more details
Many developers around the world already use it ;-)
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia