Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Cant get the hang of summation loops

Author
Message
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 2nd Sep 2004 09:42
I'm trying to make a loop that imitates summation, but something doesnt seem to be working right.

http://www.maddogcarter.com/runescape/xpformula.html

That's the page where the formula i'm trying to work out is, and below is the value of the experience variable according to L.
I'm pretty sure "floor" is the experience of the level below it.


Programs for programmers.
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Sep 2004 18:53
floor is a math function, which I think means to take a number and truncate any decimals. "Ceiling" would mean to round up to the nearest integer. Here's the dbp code that'll give the same output. If DBC doesn't have the INT() function, all it does is cut off the decimals.



"eureka" - Archimedes

Login to post a reply

Server time is: 2025-05-24 21:38:33
Your offset time is: 2025-05-24 21:38:33