Issue 20026 - Trouble handling 16 digit credit card numbers in Calc
Summary: Trouble handling 16 digit credit card numbers in Calc
Status: CLOSED WONT_FIX
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: frank
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-25 07:38 UTC by capstone737
Modified: 2010-11-10 21:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description capstone737 2003-09-25 07:38:21 UTC
I am importing a comma-delimited .csv file that has 16 digit credit card 
numbers in one of the fields. When they are displayed in Calc, they are 
displayed in scientific notation. ie

1234567890123456

becomes 

1.23+015

In the "Input Line" field, the number is displayed as:

1.234567890123456E+015

If I "Format Cells" and use "-1234" or set up a custom format code like:

################

the cells display properly ie in conventional number format. But the "Input 
Line" is still in the format of:

1.234567890123456E+015

Thus, when I save the file, the 16 digit credit card number is saved in 
scientific notation format. In addition, if I close the file and then re-open 
it again, I have to go through the "Format Cells" procedure again to get it 
to display properly.

Is there any way to:

1. Set the default display to 16 digit standard numbers?
2. Save the .csv file with standard 16 digit credit card numbers as the 
default, rather than scientific notation?

In addition, the last digit (number 16) becomes a zero and the whole number gets
rounded up. ie

1234567890123456

becomes 

1234567890123460

I have just downloaded OOo 1.1RC5 and it is the same.
Comment 1 frank 2003-09-25 16:05:13 UTC
Hi Eike,

saving such document into our own format holds the numberformat but
the change in the last two digits occur.

What do you think ?

Frank
Comment 2 ooo 2003-09-26 11:29:54 UTC
Normal numeric rounding behavior. There just is no infinite precision
in numerical computing, in fact we don't claim more than 12
significant digits to be correct. Use text input instead of raw number
input, either assign a text number format to cells before entering the
digits, or start the input with a single ' quote/apostrophe to force
text and not have it interpreted as a number.
Comment 3 frank 2003-09-26 15:23:51 UTC
Hi Capstone737,

have a look at Eikes comment.

As Excel does it in the same way and a workaround is given, I have to
close it as wontfix. 

Frank
Comment 4 frank 2003-09-26 15:24:47 UTC
closed wontfix
Comment 5 ooo 2003-09-30 18:18:46 UTC
Just adding clarity to the workaround: As the data comes from a CSV
file (and isn't manually input by keyboard means), set the
corresponding column to Text in the import dialog.
Comment 6 hartsambatchvolv 2010-11-10 21:31:08 UTC
Created attachment 73688