Epicenter dashboard showing too many decimal places of a variable

We have noticed while developing the dashboard, for some variables we had taken value 0.02 but when model load on dashboard it shows the values to be 0.019999999552965164. Attaching the screenshot as well. Is there any resolution for the this ?

Hi –

This is actually the nature of Vensim and most system dynamics software. Data is calculated as floating point numbers stored in binary. Some numbers that are “round” in base 10 are not exactly stored in binary and will have a repeating last decimal.

We recommend setting the number format for the slidebar. You can set this to two decimals by entering “#.00” in the number format property for the slidebar.

1 Like

Thank you for the support. It worked.