TIL "BigDecimal alone cannot represent arbitrary numbers" - @djspiewak: https://github.com/scala/slip/pull/28#issuecomment-153902157 … Thank you
-
-
Replying to @dwijnand1 reply 1 retweet 1 like
-
Replying to @djspiewak
@djspiewak Hi Daniel, I read your comment about this - I thought the point of BigDecimal was to deal with: http://www.drdobbs.com/jvm/javas-floating-point-imprecision/240168744 …1 reply 0 retweets 0 likes -
Replying to @GaryMalouf
@GaryMalouf Sort of. And it does a passably mediocre job of solving that problem. The ARBITRARY precision is where things get really bad.1 reply 0 retweets 0 likes -
Replying to @djspiewak
@djspiewak so what would you recommend then as an alternative on the jvm? I have not been aware of a better alternative...1 reply 0 retweets 0 likes -
Replying to @GaryMalouf
@GaryMalouf@djspiewak Spire (Scala) supports many exact number types, including Rational, Algebraic, and Real :)1 reply 0 retweets 0 likes -
Replying to @tixxit
@tixxit@GaryMalouf If you’re doing numbers in Scala, and not using Spire, you’re doing it wrong. It’s amazeballs1 reply 2 retweets 4 likes -
Replying to @djspiewak
@djspiewak@tixxit Thanks guys - appreciate the feedback. We used spire at previous company, but not aware BigDecimal === Disaster1 reply 0 retweets 1 like
@GaryMalouf @djspiewak BigDecimal definitely has its uses. Everything is a trade off in some way, but exact is sometimes nice.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.