Hi all,
I have recently switched from Windows to MacOS (M3 Air), and encountered a strange bug when running multiple sessions of Stata on my machine. Specifically, Stata automatically rounds all decimal numbers integers, for example 0.5 is interpreted as 0, but only when I run Stata as a multiple session. Here's the details.
Stata version: 17 SE
Mac version: Sonoma 14.4
If I open StataSE.app and write the following:
set obs 10
gen float x = 0.5
tab x
It correctly shows 10 instances of the value 0.5.
If I then open another Stata session using the following line in terminal:
open -n /Applications/Stata/StataSE.app
And then do the exact same thing, x has the value of 0 for all observations. It also claims that e.g. 0.5*0.5 is equal to zero. This is not a formatting issue (I've tried reformatting the variable to e.g. 9.2f). A possible hint is that setting format to 9.2f shows the number 1/2 (which works as intended) as 0,5, with a comma. This is despite having run "set dp period, permanently" before. Generating x = 0,5 with a comma does not work (gives error message "option 5 not allowed").
Does anybody know why this might occur, and how to fix it? I find it very valueable to be able to run multiple Stata sessions on Mac.
Best,
Petter
I have recently switched from Windows to MacOS (M3 Air), and encountered a strange bug when running multiple sessions of Stata on my machine. Specifically, Stata automatically rounds all decimal numbers integers, for example 0.5 is interpreted as 0, but only when I run Stata as a multiple session. Here's the details.
Stata version: 17 SE
Mac version: Sonoma 14.4
If I open StataSE.app and write the following:
set obs 10
gen float x = 0.5
tab x
It correctly shows 10 instances of the value 0.5.
If I then open another Stata session using the following line in terminal:
open -n /Applications/Stata/StataSE.app
And then do the exact same thing, x has the value of 0 for all observations. It also claims that e.g. 0.5*0.5 is equal to zero. This is not a formatting issue (I've tried reformatting the variable to e.g. 9.2f). A possible hint is that setting format to 9.2f shows the number 1/2 (which works as intended) as 0,5, with a comma. This is despite having run "set dp period, permanently" before. Generating x = 0,5 with a comma does not work (gives error message "option 5 not allowed").
Does anybody know why this might occur, and how to fix it? I find it very valueable to be able to run multiple Stata sessions on Mac.
Best,
Petter
Comment