Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Libre Office Calc - csv import manipulate my float

when i import following csv file:

test
413.298

it becomes in libre office calc:

test
413298

is that a bug or what is going wrong? in the import preview it shows correctly, but after import, the comma is goneenter image description here

enter image description here

test-file: https://dl.dropboxusercontent.com/u/168374/test.csv

like image 873
gebi84 Avatar asked Aug 06 '14 09:08

gebi84


People also ask

How do I import a CSV file into LibreOffice Calc?

In LibreOffice Calc, select 'File - Open…' (CTRL + O) and select your CSV file. You will see a 'Text Import' window. You have to set up correct options to open the file.

How can you change the data in a cell using mouse in LibreOffice Calc?

To move the focus to another cell using the mouse, simply move the mouse pointer to the cell where you want the focus to be and click the left mouse button. Using a cell reference – highlight or delete the existing cell reference in the Name Box on the Formula Bar (Figure 2 on page 8).

How do I change the decimal separator in LibreOffice?

Simply select the cells, then right-click, select “Format cells …”, then select “Number” and then select a language from the field that has the desired decimal separator. Save this answer.


1 Answers

In your case, the language setting in the CSV import dialogue is crucial.

Since you've selected german language, LO expects a comma (,) as decimal separator. With german localization, a dot (.) just separates thousands: 100.000,50. Thus, 413298 is the default integer representation for 413.298.

If LO should treat the dot in 413.298 as decimal separator, you'll have to change the language to English (US) in the CSV import dialog. Now, LO will display the value as 413,298, automatically adapting the decimal separator to the overall language settings (Menu "Tools" -> "Options" -> "Language settings") - assuming you're working with an overall language setting to german (as me ;-) ).

like image 190
tohuwawohu Avatar answered Oct 14 '22 06:10

tohuwawohu