Added functions to get percentage in MathUtil