phetsims / mean-share-and-balance

"Mean: Share and Balance" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
2 stars 1 forks source link

Can't get fulcrum at mean value #213

Closed amanda-phet closed 2 months ago

amanda-phet commented 2 months ago

I have the fulcrum at 3.1, but it's not showing up as balanced (just barely not balanced). I confirmed using the other scene and the info dialog, and moved the fulcrum, and this is as close as I can get to balanced, and it should register as balanced.

https://github.com/phetsims/mean-share-and-balance/assets/7852916/de4efa90-c469-4881-b2b5-a509469f4458

marlitas commented 2 months ago

This was happening due to a need to round both the fulcrum and mean values to the same precision. Fixed above. Over to @amanda-phet to confirm, and @jbphet for code review.

marlitas commented 2 months ago

We reviewed this together, so @amanda-phet feel free to close once you confirm.

marlitas commented 2 months ago

We reviewed synchronously. Ready to close!