def floatStr(decimal, decimalPlaces=2):
    """Format the decimal number into a string to be printed
    
    Args:
        decimal (float): Real number to be formatted
        decimalPlaces (int)(optional): Amount of decimal places
        
    Returns:
        String: The number formatted as string
    """
    return str(round(decimal, decimalPlaces))