Math, arithmetic, NaN, duplication
Jan 15, 2014
Hello, folks ...
I have created a layer which has three numeric data entry fields. Some arithmetic is performed using the values entered by the learner and the result displayed in a text field.
It works wonderfully!
HOWEVER ... if I then duplicate that layer, the new version on the new layer (which is unchanged by me) doesn't work. I can enter values and I get a result of NaN in the text field.
What exactly does NaN mean? Not a Number?
What has happened in the duplication of the layer to prevent this new version from functioning? Any ideas?
Thanks,
Martin
7 Replies
Worked it out - I think!
The 2nd instance/layer uses the same variables as the first. It seems as if the one that I use for holding the current value of the calculation - and which I also use as the reference in the text field - has its type changed from number to text. Therefore, when it comes to version 2, I am then mixing numbers and text in my calculation.
Whoops!
Thanks Martin for the update and glad you were able to work it out.
I am having the same issue. Duplicated slide yield NaN results. I am unable to discern the fix for this issue from the post above. I appreciate any clarity on this issue.
Thank you
Terry
Try using unique variables for the second slide.
Hi Terry,
This post is also a bit older, so it's possible this forum discussion and fix may not work on your .story file. Are you able to share a copy of the .story here with our team so that we could take a look? You could also share it direct with our Support Engineers here if you don't want it in the public forum.
Hi Ashley... another poster just helped me. The problem is that when you duplicate the slide, the number entry box get renamed and you have to change it back to the original. Thanks for the help.
Ah, glad you got the help you needed Terry! Let us know if you need anything else.
This discussion is closed. You can start a new discussion or contact Articulate Support.