I just skimmed the thread but just in case this detail was missed while pursuing inconsistencies between stored values and displayed values, a numeric variable of type double is assigned a display format that will not necessarily show the full decimal representation of the stored number (within the limits of the storage type precision). Using the consistent example in #5:
and the results
Note that the data editor/browser will use the display format so the number displayed will be the same as the one that is shown in the top field.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double x 82.2434248291 end describe list format %9.0g x list format %14.0g x list
Code:
. describe
Contains data
obs: 1
vars: 1
size: 8
------------------------------------------------------------------------------------------------------------------------------------
storage display value
variable name type format label variable label
------------------------------------------------------------------------------------------------------------------------------------
x double %10.0g
------------------------------------------------------------------------------------------------------------------------------------
Sorted by:
Note: Dataset has changed since last saved.
. list
+-----------+
| x |
|-----------|
1. | 82.243425 |
+-----------+
.
. format %9.0g x
. list
+----------+
| x |
|----------|
1. | 82.24342 |
+----------+
.
. format %14.0g x
. list
+---------------+
| x |
|---------------|
1. | 82.2434248291 |
+---------------+

Comment