Add support for percent calculations based on holgersindbaek's code

Fixes https://github.com/vrinek/little-math-pet/issues/1