provide additional functions for accessing float values

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3561 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-09-28 09:32:26 +00:00
parent 16dc218d77
commit e6e5263b45

View file

@ -134,6 +134,13 @@ class FloatValue(float):
value = value + ' ' + self.currency
return value
def rawValue(self):
return float(self)
def rawFormatted(self):
format = '%%.%if' % self.decimals
return (format % self)
# utility functions