Forum Discussion
VeronicaNalley-
4 years agoCommunity Member
Help/workarounds needed for math interaction
I am creating a math interaction in SL360 - it generates random fractions for learners to practice converting to decimals. There are 2 issues for which I could use help, ideas, and/or workarounds. ...
WaltHamilton
Super Hero
You really can't choose the number of places without going to javascript and changing it to a text variable.
But, as long as you are in js, you can also make the input variable a text variable, which can default to [blank]. Then in js, change it to a number, do the math, and change it back to text to be displayed.
Solves your problems, but does introduce another; there is no built-in checking to insure the input is a number, so you probably have to create that, too.
VeronicaNalley-
4 years agoCommunity Member
Thank you for your thoughts, Walt.
I'm not too experienced with JS, but it's sounding like this may be an excuse to get better!