function - how to cap a php int value -


I'm doing some calculation with php and I want to be above number 100

example I do not want 50 + 80 to 100 and 130. Basically capsize any result up to 100.

Thanks

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -