Giter VIP home page Giter VIP logo

Comments (5)

skyriverbend avatar skyriverbend commented on July 28, 2024

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.

ahdinosaur avatar ahdinosaur commented on July 28, 2024

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.

skyriverbend avatar skyriverbend commented on July 28, 2024

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.

ahdinosaur avatar ahdinosaur commented on July 28, 2024

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.

derekrazo avatar derekrazo commented on July 28, 2024

bump

from cobudget-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.