def en_percent(num, ndigits=u'not-given'):
 with translation.override(u'en-US'):
  if (ndigits == u'not-given'):
   return percent(Decimal(num))
  else:
   return percent(Decimal(num), ndigits)

def en_percent ( num , ndigits = u'not-given' ) : with translation . override ( u'en-US' ) : if ( ndigits == u'not-given' ) : return percent ( Decimal ( num ) ) else : return percent ( Decimal ( num ) , ndigits )
format given number as percent in en-us locale .