Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Java:
Rounding down?

 

 


mattyc033444
Member


Jun 6, 2007, 3:27 AM

Post #1 of 5 (324 views)
Shortcut
Rounding down? Can't Post

Hey, can any of you people help me with calculating a level from experience.

So this is as far as i have got:

int xp = the experience goes here...;
double sqrt = math.sqrt(xp)*5/70; //It doesn't matter if that function is wrong I can look it back up later
int level = What is the function to round down?;

Someone help please? Thanks :D


__________
Join here my new forums! Also, check the GAMES out! Well, when it's finished! forums.biohazardGAMES.net



Sami_Taker
Senior Member

Jun 6, 2007, 4:54 AM

Post #2 of 5 (321 views)
Shortcut
Re: [mattyc033444] Rounding down? [In reply to] Can't Post

Math.floor


oh and

SAGE


mattyc033444
Member


Jun 6, 2007, 6:48 AM

Post #3 of 5 (317 views)
Shortcut
Re: [Sami_Taker] Rounding down? [In reply to] Can't Post

Thank ya i appreciate it to the max ^_^


__________
Join here my new forums! Also, check the GAMES out! Well, when it's finished! forums.biohazardGAMES.net


wakka
Enthusiast

Jun 26, 2007, 10:27 PM

Post #4 of 5 (285 views)
Shortcut
Re: [mattyc033444] Rounding down? [In reply to] Can't Post


In Reply To
Hey, can any of you people help me with calculating a level from experience.
So this is as far as i have got:
int xp = the experience goes here...;
double sqrt = math.sqrt(xp)*5/70; //It doesn't matter if that function is wrong I can look it back up later
int level = What is the function to round down?;
Someone help please? Thanks :D


Lol, double squirt, pr0n game lawl JK Tongue


Wakka: I see that you are from that ******* forum, by the style of your typing.
Mark: It's called a font.



linkski23
Newbie

Aug 29, 2008, 4:38 AM

Post #5 of 5 (110 views)
Shortcut
Re: [Sami_Taker] Rounding down? [In reply to] Can't Post

[url=http://www.fallensword.com/?ref=1995902]

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.15 s on (CGI/1.1)