How to change number of significant figures?

Use this forum to post Vensim related questions.
Post Reply
RobbieOrvis
Member
Posts: 43
Joined: Wed Dec 13, 2017 5:16 pm
Vensim version: DSS

How to change number of significant figures?

Post 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.
tomfid
Administrator
Posts: 3800
Joined: Wed May 24, 2006 4:54 am

Re: How to change number of significant figures?

Post 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.
RobbieOrvis
Member
Posts: 43
Joined: Wed Dec 13, 2017 5:16 pm
Vensim version: DSS

Re: How to change number of significant figures?

Post 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
tomfid
Administrator
Posts: 3800
Joined: Wed May 24, 2006 4:54 am

Re: How to change number of significant figures?

Post 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.
Post Reply