How to change number of significant figures?
-
- Member
- Posts: 43
- Joined: Wed Dec 13, 2017 5:16 pm
- Vensim version: DSS
How to change number of significant figures?
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?
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.
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.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
-
- Member
- Posts: 43
- Joined: Wed Dec 13, 2017 5:16 pm
- Vensim version: DSS
Re: How to change number of significant figures?
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?
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.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/