Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
concert-gilled
on Aug 13, 2019
|
parent
|
context
|
favorite
| on:
Fewer Than Half of Google Searches Now Result in a...
Both cases showed 2 decimal places for me.
ummonk
on Aug 13, 2019
[–]
You get 5 decimal places if you divide by 1000...
concert-gilled
on Aug 14, 2019
|
parent
[–]
Thanks, I missed that. I was just looking at the number of decimal places. Is that method accurate?
(1000 * incorrectly_rounded) / 1000 == incorrectly_rounded
ummonk
on Aug 14, 2019
|
root
|
parent
[–]
It's not incorrectly rounded. It's correctly rounded to two decimal places in either case. Two decimal places just isn't enough digits when you give it 1 USD, so you have to give it 1000 USD.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: