Help/workarounds needed for math interaction

Aug 24, 2021

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. 

  1. My "answer checker" is rounding to 2 decimal places, but I want 3. 
    I have a variable that calculates [numerator] divided by [denominator], but when [denominator] is 1000, the resulting answer is rounded to 2 decimal places. For example, 48/1000 should be 0.048, but instead it spits out 0.05.
  2. I want the numeric entry field to be [blank] - NOT set to value zero - when the timeline (re)starts on the slide. Is there any way to achieve this? 

Finally, this is not really an issue, per se, but while I have you... I consider myself pretty darn experienced in Storyline, but I never have been able to figure out how to format the instruction text and the learner-input text differently on a data entry field. This part of the SL360 user guide makes it seem possible, but it doesn’t say how to make them different.  

The .story file is attached to this post. Thank you in advance for your help! 

-Veronica

2 Replies
Walt Hamilton

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.