Open dandv opened 1 month ago
A few things to bear in mind:
Number.MIN_VALUE
is 5e-324
Number.MAX_VALUE
is 1.7976931348623157e+308
5e-324
into a cell gives a string; 1e-307
gives the number value of 1e-307
; 1e-308
gives 0
(0.00E+00); 0.000000001
(1e-9) remains displayed as a decimal point, whereas 0.0000000001
(1e-10) starts displaying as scientific notation.1e308
into a cell gives a string; 1e307
gives the number value of 1e307
; 10000000000
(1e10) remains displayed as a decimal point, whereas 100000000000
(1e11) starts displaying as scientific notation.1e100
was getting written out as 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
each time.n.nnE[+-]n
format. Re-opening them in Excel gives a dialog box that gives the option to treat them as numbers. Excel also seems to handle numbers formatted like 1.2e-8
the same way (YMMV with other spreadsheet software).1e5
, 1E5
, 1.0E+05
etc. perfectly fine, so if using scientific notation at all, it might be worth preferring whichever version of scientific notation is most widely compatible with spreadsheet programs (if there's a difference).
When outputting CSV fields that are small numbers, the output can end up in scientific notation. This can confuse spreadsheet software.
Describe the solution you'd like
A StringifyOption to disable scientific notation.
Describe alternatives you've considered
Using Big.js.