Live data from Hacker News

Fixed – Fixed-place decimal math library for Go

github.com

1–10 of 73 posts

Re: Fixed – Fixed-place decimal math library for Go

#3
post #2

I'm not an expert but a finance library without a choice of rounding modes and using floating point for division and multiplication is a bit strange? Why those decisions?

It appears to be using this: https://engineering.shopspring.com/decimal-an-arbitrary-prec...

Re: Fixed – Fixed-place decimal math library for Go

#4
post #2

I'm not an expert but a finance library without a choice of rounding modes and using floating point for division and multiplication is a bit strange? Why those decisions?

Despite what everyone says, I've spoken to several different people at several different highly-regarded banks who say that they do, in fact, use floating point for money amounts in some of their systems.

What experience do people who work in banks have?

Re: Fixed – Fixed-place decimal math library for Go

#7
post #2

I'm not an expert but a finance library without a choice of rounding modes and using floating point for division and multiplication is a bit strange? Why those decisions?

Despite what everyone says, I've spoken to several different people at several different highly-regarded banks who say that they do, in fact, use floating point for money amounts in some of their systems. What experience do people who work in banks have?

I worked in the credit union software space for a while, and using floating points for this does lead to trouble. There were several bugs in my time that were caused by using floats and were fixed by using integer math.

Re: Fixed – Fixed-place decimal math library for Go

#8
post #2

I'm not an expert but a finance library without a choice of rounding modes and using floating point for division and multiplication is a bit strange? Why those decisions?

Despite what everyone says, I've spoken to several different people at several different highly-regarded banks who say that they do, in fact, use floating point for money amounts in some of their systems. What experience do people who work in banks have?

I work in Finance, I don't use float, and I suggest you never do either.
Post reply on HN