Math Functions?
Posted: Thu Apr 18, 2002 8:47 pm
I trying to learn a little about the math functions of PHP and i see that... floor = is rounded up and that round is just rounding... but how would i do like a percentage type thing... like rand() ? would that do the trick? And also for logs how exactly do they work ;/ sorry i don't know... one more thing... having a comma in a math function followed by a number what does that do? is it an array? example:
what exactly does that mean? sorry for all the questions =_-
Code: Select all
$total = floor ($posts / 6, 1);