Initializes the ValueMax class
Arnau Mora
20210313
The current value
The maximum value
When value is greater than max
Returns the percentage of value in max.
Converts the proportion between value and max to a float. This is, a value between 0 and
Converts the ValueMax to a Int-based one, using the ValueMax.percentage function.