Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: RE: Decimal Precision with Destring

From   "Martin Weiss" <>
To   <>
Subject   st: AW: RE: Decimal Precision with Destring
Date   Mon, 19 Apr 2010 17:09:36 +0200


Which -format()- option are you referring to? (The one for -tostring-?)


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Nick Cox
Gesendet: Montag, 19. April 2010 16:59
Betreff: st: RE: Decimal Precision with Destring

You probably need to specify a -format()- with -destring-. 

Do bear in mind the advice to specify the exact commands you used. 


Sutton, Bennett W.

I found one post on this from 5 years ago.  But no resolution to the
issue was posted.  Wondering if anyone has since encountered and
surmounted this problem:

I am insheet-ing a .csv file with decimal precision set at 15 places in
excel.  But after insheeting into stata, the series are data type
double, but only have precision to 10 places.  I'm working with
hyperinflation countries and the lack of precision is producing some
incorrect results in calculations.

I have also tried reading the data in as string variables which at least
preserves the 15 digit precision, but destring-ing the data results in
loss of precision again to 10 decimal places.

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index