@staticmethod
def __clamp_percentage__(val):
    """
        clamp given percentage to a range from 0 to 100
        """
    if val > 100:
        val = 100
    elif val < 0:
        val = 0
    return val
