ID:159580
 
I have to be able to round a number down everytime with a changing interger, but round() unless your using a set interger rounds up. Any idea how I would get it to round down during this proc?
Sorry if I am just not understanding the help in DM but its very vague, as usual.
In what way is that vague?

<font size=+1>round proc</font>

Format:
round(A)
round(A,B)

Returns:
rounded A

Args:
A: A number.
B: The nearest multiple to round A.

The first format returns the floor of A (the largest integer less than or equal to A). The second format rounds A to the nearest multiple of B.

Example:
usr << round(1.45) // outputs 1
usr << round(-1.45) // outputs -2
usr << round(1.45,1.5) // outputs 1.5


EDIT
Sorry, it copied and pasted wierd, so I had to mess with it a bit.

To add more clarity, I will explain how the round() proc basically works.

As it describes, the round() proc normally rounds DOWN to the nearest integer. So if you have 1.99, it'll be rounded down to 1. To combat this, you can simply set the B argument to 1, to make it round to the nearest multiple of B (again, it describes this). So if you have round(1.99,1), it'll round that to 2, since 2 is the nearest multiple of 1 to 1.99.

I hope that clarifies ^-^
In response to Spunky_Girl
so if I put in B as 1 its going to round down as long as its a number greater than 1 and its only going to round from like 3.33 to 3?
In response to Sleinth
No. Please read my edit :)
In response to Spunky_Girl
ok thanks, I dont know how I messed that up. lol