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:
parent
16dc218d77
commit
e6e5263b45
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue