Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: getdecimal() for use within mappings #243

Closed
GoogleCodeExporter opened this issue Jan 8, 2016 · 3 comments
Closed

add: getdecimal() for use within mappings #243

GoogleCodeExporter opened this issue Jan 8, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

getdecimal() is useful in mappings for calculations.
A python decimal is returned (http://docs.python.org/2/library/decimal.html)
When nothing is found (None): decimal 0 is  returned.
Non-numeric strings (including empty strings) give error.

Original issue reported on code.google.com by hjebb...@gmail.com on 31 Jul 2013 at 11:16

@GoogleCodeExporter
Copy link
Author

Changed this: non-numeric strings also return decimal 0.
warning: this function might 'mask' errors, because when input is not-valid, it 
aalwyas return a decimal 0. 

Original comment by hjebb...@gmail.com on 1 Aug 2013 at 11:40

@GoogleCodeExporter
Copy link
Author

Original comment by hjebb...@gmail.com on 6 Sep 2013 at 4:54

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by hjebb...@gmail.com on 10 Sep 2013 at 12:46

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant