Пример #1
0
def approxValueIt(value, decimals):
    """
    Approximate the floating point values of the element with the
    given number of decimals
    """
    format = '%%.%df' % decimals
    #print value
    value = float(value)
    if value and value !="":
        return mNLC(value,decimal=decimals)
    else:
        return ""
Пример #2
0
 def speseIT(self):
     if self.spese:
         from promogest.lib.utils import mNLC
         return mNLC(self.spese, 2)
     else:
         return ""