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 descriptionUserAgent: 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.
,
Oct 10 2016
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.
,
Oct 10 2016
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.
,
Oct 11 2017
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
,
Oct 11 2017
This is still happening.
,
Oct 11 2017
,
Sep 4
Setting PDF bugs assigned to me back to untriaged so they can get re-assigned as needed.
,
Sep 5
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by dtapu...@chromium.org
, May 13 2016Components: -Blink Internals>Plugins>PDF