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

Numbers in questions accordion box typed as string. #184

Closed Denz1994 closed 7 years ago

Denz1994 commented 7 years ago

The inputs for the question answers in the questions accordion box are numbers that are typed as strings. I'm assuming this is specifically done for comparing correct answers with the inputted response. @pixelzoom

Using stringTest=x produces the below image. image

Reference #159

pixelzoom commented 7 years ago

The red 'x' in the screenshot above is more than just a number. It's a number that's formatted as currency using the pattern "${0}". That pattern is what's being replaced with 'x' by stringTest.

Make sense?

Denz1994 commented 7 years ago

Understood. Closing.