Page 1 of 1

How to change number of significant figures?

Posted: Wed Apr 21, 2021 8:20 pm
by RobbieOrvis
Hello, we've only just noticed that Vensim is only calculating 6 significant figures. Is there a way to adjust this? We can't seem to find it in the model settings or options.

Re: How to change number of significant figures?

Posted: Wed Apr 21, 2021 9:30 pm
by tomfid
It calculates in double precision, but the Table tool truncates the precision. You can change this by right-clicking the tool for options. If you switch to "Scientific" you can use C printf-style format strings to set the precision.

The dll has separate functions for single and double output.

If you're seeing this somewhere else, like export, let us know and there may be something we can adjust.

Re: How to change number of significant figures?

Posted: Fri Apr 23, 2021 8:10 pm
by RobbieOrvis
Thanks for this. We have tried adjusting the printf-style (e.g. putting %.12f in the box to the right of "Scientific") but the table feature continues to only output 6 significant figures

Re: How to change number of significant figures?

Posted: Fri Apr 23, 2021 9:39 pm
by tomfid
It's working for me, but I'm using a recent alpha build. I think that means we've fixed it for the next release, but I'll double check.