Well, that actually depends on what $rs[value]
and $rs[counter]
contain rather than value
and counter
themselves. But my question to you is:
What did it return when you tried it?
That'll probably give you the right answer, surprisingly enough, rather than having one of us do it for you.
Responding to your comment:
I was just checking if I did right. I couldn't figure out why I added the ",1" to my code. I completely forgot so I wanted to check, maybe that should of been my question?
Maybe, but there's ample precedent on StackOverflow where the question that was asked is frequently replaced, over time, by the question that was meant. That's not a problem and the best help-desk-type people (including those, like myself, who look after countless family computers) are those who can tease out the real question without insulting the intelligence of the asker :-)
In any case, the 1
argument to the round function specifies how many fractional places are used to round the number, so:
round (1.2341234,0) = 1
round (1.2341234,1) = 1.2
round (1.2341234,2) = 1.23
round (1.2341234,3) = 1.234
round (1.2341234,4) = 1.2341
and so on.