0

I am exporting a database from Access to a CSV, and I was (finally) able to get more than two decimals to transfer after changing my Windows Region settings settings to make 9 decimals the default. Is there any way to get 10 decimals? Is there a registry key or something I need to change?

2
  • support.office.com/en-us/article/… - how many digits have you got stored in the database? The way to get those out should NOT depend on the regional settings.
    – Hannu
    Nov 21, 2017 at 21:51
  • @Hannu at least 10, when exporting the table to text, it seems to depend only on region settings.
    – wizlog
    Nov 21, 2017 at 22:11

1 Answer 1

1

Check your csv file data (open with notepad or wordpad). I bet you will see all he digits you have in the database.

Excel should be able to display upwards some 16 decimals, filling in "0" for those that are not available or has no value.

Simple way to determine the limit

  • Pick a cell, type "0.12345678901234567890" in it (assuming you use
    decimal POINT, change the point to a COMMA if necessary).
  • Press ENTER and
  • move back the cursor to the cell

... check the formula bar.
You should see e.g. "0.123456789012346" - meaning maximum 16 decimals retained

(note: in reality it is more likely to be 16 digit precision, that is; also the integer digits count, if you have five there, there is only 11 decimals max).


To DISPLAY all of them, set the DISPLAY-format
- Mark all cells you wish to see the decimals in
- hold CTRL and hit 1 (the digit ONE)
- find the word "Number" and click on it
- having done that, you should see "Decimals", adjust for your needs.
- Click "OK"

Adjust column width wide enough so that all decimals can be shown;
- Click the square left of "A" and just above "1" (column and row indexes)
- Move the mouse pointer above the |-bar between A and B column indexes
- Make the pointer be precisely over the bar, and it will turn into a double arrow
- Double click the bar.

All this typed from memory, I use LibreOffice Calc at home, details differ.

6
  • Nice memory, but opening the csv in Excel has my data truncated it to 2 decimals
    – wizlog
    Nov 23, 2017 at 16:21
  • Click in one of the cells having a number; still only two decimals shown? How about loading the csv file into Notepad or any other editor, how many decimals do you see there?
    – Hannu
    Nov 23, 2017 at 18:00
  • If it’s showing only 2 decimal places then use the Excel decimal feature to show more decimal places if the value is 0 then your data is truncated at the source
    – Ramhound
    Nov 23, 2017 at 18:27
  • as explained at DISPLAY above.
    – Hannu
    Nov 23, 2017 at 18:33
  • @Ramhound Yes, it is being truncated at the source, that's what this question aims to address.
    – wizlog
    Nov 24, 2017 at 14:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .