I am looking for an example of how to set (and get) the number of digits (LOCALE_IDIGITS).
Background: I am using COM automation (client: Python, server: ACCESS, package:pywin32). When using TransferText it always prints 2 decimals. (See e.g. https://social.msdn.microsoft.com/Forums/office/en-US/5bba131c-d6cd-4548-9f0f-c85947b3d81d/access-2010-export-text-truncates-numbers-to-two-decimal-places?forum=accessdev for others hitting this problem). Actually, it turns out, this is due to the locale settings. (I could not find any documentation on this, but a bit of testing confirmed this.) Under Windows, the locale has a setting called LOCALE_IDIGITS:
Number of fractional digits placed after the decimal separator. The maximum number of characters allowed for this string is two, including a terminating null character. For example, 2 for 5.00, 1 for 5.0.
So, because of this, I want to change the locale settings for the application so the Access Function will write a CSV file in full precision (say 16 or 8 decimals). I don't mind if the example is in a different language or is changing a similar setting. I assume get and set will be symmetric, so one of these should be sufficient to get me going.