New issue
Advanced search Search tips

Issue 611744 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Chrome PDF Viewer not calculating fields correctly (Numbers are rounded down by a fraction of a cent)

Reported by jflebl...@ncdsb.on.ca, May 13 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36

Example URL:
http://www.ncdsb.on.ca/policy/ADMINISTRATIVE%20PROCEDURES%202013/Section%20B%20-%20Business%20Administration%20&%20Finance/APB002B%20-%20Reimbursement%20of%20Expenses%20Procedure.pdf

Steps to reproduce the problem:
1. Click and view the PDF URL included above within Chrome using Chrome PDF Viewer
2. Under Miscellanous, I enter a cost of 407.96
3. The Total shows a number of 407.959991.
4. A small number like 4.76 appears correctly

What is the expected behavior?
When this PDf is used with Adobe Reader, calculations are correct to 2 decimal points. When using this sheet with the Chrome PDF Viewer, for some reason the calculations as reduced by a fraction of cent

What went wrong?
Issue was presented to us as a user with a Chromebook reported that the calculations were wrong. We confirmed that this occurs on our Chromebooks, and windows Based Chrome Web Browser users. We considered disabling the Chrome PDF Viewer, but this solution does not work well with our Chromebooks without an 3rd party application. 

Does it occur on multiple sites: Yes

Is it a problem with a plugin? Yes Chrome PDF Viewer

Did this work before? No 

Does this work in other browsers? Yes 

Chrome version: 50.0.2661.94  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 21.0 r0

We recently choose to use Chrome as our default browser, so this issue may have been present before, but since we are enforcing Chrome as the default, we are now seeing this issue on a daily basis.
 
APB002B - Reimbursement of Expenses Procedure.pdf
281 KB Download
Cc: thestig@chromium.org
Components: -Blink Internals>Plugins>PDF
Labels: OS-Chrome OS-Linux OS-Mac
Status: Available (was: Unconfirmed)
Either AFSimple_Calculate (Implemented in PDFium as CJS_PublicMethods::AFSimple_Calculate()) should be rounding, or the form that takes the end result should be rounding. Needs more investigation.
I don't see any special attributes in the PDF form that dictate the formatting. In Acrobat Reader, given $field1 and $field2 that sums up to a value that's then stored in $field3, we have:

[12, 23 -> 35]
[12.1, 23 -> 35.1]
[12.1, 23.9 -> 36]
[12.1, 23.99 -> 36.09]
[407.96, (blank) -> 407.96]

So it seems the form should only display the minimum number of digits required to accurately represent the result.
Project Member

Comment 4 by sheriffbot@chromium.org, Oct 11 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: rharrison@chromium.org
Status: Assigned (was: Untriaged)
This is still happening.
Owner: dsinclair@chromium.org
Owner: ----
Status: Untriaged (was: Assigned)
Setting PDF bugs assigned to me back to untriaged so they can get re-assigned as needed.
Status: Available (was: Untriaged)

Sign in to add a comment