Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- limit calculation output
June 6, 2008, 6:12 pm
rate this thread
I'm a very PHP newbie, and have a stupid problem....
This is the code I have trouble with: (PHP tags removed)
round(( $number1 / $number2 ));
The problem is that the result of the calculation can be higher than
Any number higher then 10, have to be print out as 10...
Let's say the calculation becomes 41, than it needs to be replaced by