I'm using Stata/SE 17.0
I'm having trouble getting the exact value of 0.128 entered into a variable using either the Data Editor manually or by command.
Here's the code I can enter to recreate the issue:
provides a table with the same numbers as entered, except .130 is now .13
The values in the data editor display the same in the variable column, however in the toolbar showing the active cell:
.127 displays as .127
.128 displays as .12800001
.129 displays as .12899999
.13 displays as .13
returns 'no observations' r(2000);
I feel as though I've seen this topic before in the forum but I can't locate the thread.
I'm having trouble getting the exact value of 0.128 entered into a variable using either the Data Editor manually or by command.
Here's the code I can enter to recreate the issue:
Code:
gen float x = . set obs 4 replace x = .127 in 1 replace x = .128 in 2 replace x = .129 in 3 replace x = .130 in 4
Code:
tab x
The values in the data editor display the same in the variable column, however in the toolbar showing the active cell:
.127 displays as .127
.128 displays as .12800001
.129 displays as .12899999
.13 displays as .13
Code:
graph bar x if x==.13
I feel as though I've seen this topic before in the forum but I can't locate the thread.
Comment