import math


def scaleSize(inputSize):
    """Scale a given value.
    
    The return values is created using a logarithmic scale (base 10), with all
    decimal values truncated.
    
    args:
        
        inputSize -- number to be scaled
        
    returns:
        
        The truncated log10 value of the input
        
    """
    
    try:
        scaledValue = math.log10(inputSize)
        scaledValue = math.trunc(scaledValue)
    except ValueError:
        scaledValue = 0
    
    return scaledValue