Long page number slightly different when rendered through Zotero
wmhorne opened this issue · comments
Summary: When rendered through Zotero, a work's long page number has a different final digit.
Problem
I'm citing a reference that includes a long page number, 23094990211003347
. The reference info looks like this in Zotero:
When looking at the reference that's generated using csl, however, this page number ends up being slightly different.
It's 23094990211003348
, as opposed to 23094990211003347
:
This appears to be true across styles:
This also appears to be true regardless of the specific final digit:
Somewhere in the process the page number is converted to a (double-precision) floating-point number, and this page number is too large to represent accurately. It seems to also happen when the page has a non-numeric prefix (e23094990211003347
).
citeproc-js/src/util_number.js
Lines 989 to 993 in aa2683f