Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

import decimal; decimal.Decimal('3.14159')


A few words of explanation wouldn't hurt. Are you saying that I shouldn't ever do monetary calculations in the database at all? If so then I have to disagree.


No, they are giving ways to do it outside of the db. You really answered your own bias on this. You want the db to handle it, so you wouldn't use sqlite in the first place.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: