NAVADMC / ADSM

A simulation of disease spread in livestock populations. Includes detection and containment simulation.
Other
10 stars 5 forks source link

Results Median Total area high arithmatic precision #970

Closed missyschoenbaum closed 4 years ago

missyschoenbaum commented 4 years ago

Wow, we are really giving every ounce of information here. Is it possible to round to 2 or 3 decimal places? I don't know that I can conceptualize a km^2 to start with, much less .3600000000001 of a km^2.

Very low priority mediantotalarea

ConradSelig commented 4 years ago

Wow my first stab at this was a horrible approach! Glad I walked away from the problem for a bit before coming back to it.

Bonus to the fix I actually made, rounding only occurs when we display the value - which means all of that precision still makes it through the database. I agree with Missy in saying "I don't know that I can conceptualize a km^2 to start with, much less .3600000000001 of a km^2", but if a user needs that level of precision, who are we to stop them?

Rounding is done up to 3 places, so if only two are needed (like .36000000000001), only two are shown.

missyschoenbaum commented 4 years ago

Much better!