Comments (5)
I'd like to not even have cents in the whole process and just stick to dollars. And then only switch to using cents once we start doing multiple currencies...
from cobudget-api.
i don't have an opinion on whether the user experience should be in dollars or cents or whatever, i do think that either way we should use BigDecimal on the backend so we have the technical flexibility of infinite precision numbers without rounding errors.
from cobudget-api.
But if we're not using cents then wouldn't it make more sense to not store decimals at all?
On Mon, Dec 8, 2014 at 3:14 PM, Michael Williams [email protected]
wrote:
i don't have an opinion on whether the user experience should include dollars or cents or whatever, i think we should use BigDecimal regardless so we have the technical flexibility of infinite precision without rounding errors.
Reply to this email directly or view it on GitHub:
#34 (comment)
from cobudget-api.
decimals provide flexibility, they can do everything integers can do and more, so we can do whatever we want with our numbers and it'll be supported without additional rewrites. i have a hard time believing we will never ever want to use cents or other fractional amounts, so why not plan this current rewrite for something that works for all cases so we don't have to rewrite this code again when the user stories change. also integers have a max value, not that i think we'd hit the max with our current orgs.
from cobudget-api.
bump
from cobudget-api.
Related Issues (20)
- Blanked comments HOT 2
- improve performance for group page HOT 5
- 500 error returned by analytics endpoint HOT 1
- Can't Upload CSV File HOT 15
- MembershipsController#index very slow in large (+200 members) groups HOT 2
- Can we reduce the number of times Group is serialized? HOT 1
- combine duplicate emails and their allocation amounts on csv upload HOT 1
- error! you have no active memberships
- Make sure that `gem install redcarpet -v '3.4.0'` succeeds before bundling. HOT 1
- PUT /users/:user_id
- Rounds have option for user-proposed buckets
- POST /auth/log_in.json errors with 500 status HOT 1
- add development usage of mailcatcher to README
- Enabling cobudget test & dev HOT 1
- Story : Admin can notify contributors at round milestones. HOT 7
- Default passwords should be more prominent HOT 2
- API documentation very needed HOT 5
- Failing to create new project
- [beta] email notifications from comments on same bucket have different subjects HOT 1
- Gemfile contains duplicate entries for airbrake HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobudget-api.