I have a dataset full of identifiers similar to the id below:
When I copy and paste this into Stata, the variable is automatically formatted as long %8.0g.
When I run the following code . . . .
format id %15.0g
generate id2 = id
format id2 %15.0g
. . . id2 is "magically" different from id (see below).
I notice when I click on each of the cells in Stata, id[1] is showing 1093489745 but id2[1] is showing 1.093e+09.
Why is this happening, and what can I do to prevent it in the future?
Thanks,
Erika
id |
1093489745 |
When I run the following code . . . .
format id %15.0g
generate id2 = id
format id2 %15.0g
. . . id2 is "magically" different from id (see below).
I notice when I click on each of the cells in Stata, id[1] is showing 1093489745 but id2[1] is showing 1.093e+09.
id | id2 |
1093489745 | 1093489792 |
Thanks,
Erika
Comment