@library.filter
def round_percent(num):
 return (round(num, 1) if (num < 10) else int(round(num, 0)))

@ library . filter def round_percent ( num ) : return ( round ( num , 1 ) if ( num < 10 ) else int ( round ( num , 0 ) ) )
return a customercare-format percentage from a number .