-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rounding issue #2
Comments
Hi, sorry it took me so long to reply. Based on what you describe, it seems like bug induced by floating points. I'll take a closer look and report back. |
Could you please provide a minimum working example so that I can reproduce the issue? |
Hi, thanks for answering. The following example reproduces the rounding issue I reported here:
|
Unfortunately I am not able to reproduce the issue you describe. When running your example above, I get % results.tex
\newcommand{\trunk}{$-0.68$} which is the expected behavior: the result has a zero in the unit position, and it is rounded to two decimal places, which is the default. I am using Stata/MP 17.0 for Mac (Intel 64-bit), revision 01 Jun 2022. Below is a screenshot of what I run and the output I get. |
I see, no need to apologize! I presume it must be that the |
Hi! Thanks again for creating this package. I am having a similar rounding issue but slightly different circumstance. I am using matrices to create the lower and upper bounds on my coefficients and then also export those using texresults. However, one of my bounds also has the same rounding issue. I have tried exporting the contents from the matrix as a local, and also rounding the matrix itself. I also updated to stata18 but am still having this issue. Here is some code that recreates the issue: `//recreate issue using auto data //create matrices to find lower and upper bounds //export results The results show: \newcommand{\lb}{$-0.9500000000000001$} Any help solving this issue would be greatly appreciated. Thank you for your time. |
Hi, thanks for your great work! I am having an issue with some coefficients that are not rounding as expected. I am trying to round to 3 decimal places, but the command is exporting some coefficients with 16 decimal places. It does round to 3 decimal places as expected, but fills in up to the sixteenth with 12 zeros and a 1 at the end.
The text was updated successfully, but these errors were encountered: