Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
epse
on Dec 2, 2019
|
parent
|
context
|
favorite
| on:
0.30000000000000004
It's not correct, but in many cases it's plenty accurate
jsjohnst
on Dec 2, 2019
[–]
If you are dealing with other people’s money, the
only
accurate is
accurate
. Close enough should not be in any financial engineer’s mindset, imho.
recursive
on Dec 2, 2019
|
parent
[–]
In this case, it's both. Decimal floating point types do
not
lose precision with base-10 numbers, unless using trig, square roots, arbitrary division and the like.
jsjohnst
on Dec 2, 2019
|
root
|
parent
[–]
> arbitrary division
Like commonly happens doing financial calculations, especially doing interest calculations.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: