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 ""
def speseIT(self): if self.spese: from promogest.lib.utils import mNLC return mNLC(self.spese, 2) else: return ""