Restricted Number

by DivineTraveller
An easy way to keep a value between a min and a max.
ID:125455
 
Getting annoyed constantly doing if(hp>maxhp) hp=maxhp?
Want an easy solution?
Then give this library a test drive!

If you have any suggestions or bug reports, please leave them on my forum, or leave a comment here.