On Thursday, March 28, 2019 at 2:41:26 PM UTC-4, Daniel Theophanes wrote: > > If you represent decimals or money in Go, I'd like to hear from you: > > https://docs.google.com/forms/d/e/1FAIpQLScqXYCCCS4fTJXnRvB0qDWsbDXFL9tBBtwDY4y3Ym953nq5MQ/viewform > > I work on database/sql and a few sql drivers. I'm hoping to make working > with decimals, especially when working with databases, much easier. >
Not GO specific, but in 40+ years, the only choice for decimal money is to store them as pennies. If you like with an OO language, you can implement Money and Dollars (vs Pounds or Euros). Using floating point for money is a sin. It simply never works. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.