phetsims / unit-rates

"Unit Rates" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 2 forks source link

String test= double gives inconsistent cost readout #183

Closed Denz1994 closed 7 years ago

Denz1994 commented 7 years ago

The values cost readout on the scale doesn't produce the same number of decimal places when 'doubled'. Is this a significant problem? @pixelzoom

Shopping image

Shopping Lab image

When inputting a ratio that is irregular the thousandths decimal place is grayed out as intended as shown in the second image.

pixelzoom commented 7 years ago

This is a known problem with how stringTest handles patterns (strings with placeholders, like "${0}"). See https://github.com/phetsims/chipper/issues/413. Since it's unlikely to be fixed anytime soon, PhET has been generally ignoring this problem when testing sims. I think it's appropriate to ignore it here too, since it's not a real-world problem. But thanks for reporting it.

Closing.

pixelzoom commented 7 years ago

159