Ask Your Question
1

large numbers truncated in Calc

asked 2012-10-03 20:29:26 +0200

ciccio70 gravatar image ciccio70
21 2 2 3

I have a csv file where large numbers are stored. When I open the file in Calc, it somehow alters the numbers so that the trailing 7 digits are replaced by 0's. For example, 9400111201080133911953 shows up in Calc as 9400111201080130000000. how can I fix this?

thanks, franc

delete close flag offensive retag edit

2 Answers

Sort by » oldest newest most voted
3

answered 2012-10-03 23:34:18 +0200

mariosv gravatar image mariosv flag of Spain
4599 20 45

In the import window, click the column head to select it, and after select Text in the Column type.

image description

link delete flag offensive edit

Comments

Better than my answer

w_whalley ( 2012-10-04 01:47:12 +0200 )edit
2

answered 2012-10-03 21:29:08 +0200

w_whalley gravatar image w_whalley flag of United States
1571 10 24

LibreOffice is recognizing the string 9400111201080133911953 as a number, but has insufficient precision to represent this number. If you can arrange to have your csv string be quoted, "9400111201080133911953", and choose the Quoted Field as Text option when the CSV is imported, it will display all the digits in the string. Alternatively you could prepend a ' to the string in the CSV, i.e. '9400111201080133911953, it will be recognized as text.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-10-03 20:29:26 +0200

Seen: 154 times

Last updated: Oct 03 '12