If what I've read is correct and storyline(2) rounds to 7 decimal places, why can't you display all 7?
I need to use 3 decimal places but can only display 2. I've done all of my calculations a power of 10 greater (2 dp) so I have the right digits but then I have to divide by 10 and when I display the result I only have 2 dp.
How can I display (or even calculate to) 3 decimal places?
Yes, its true. SL shows just 2 decimal places. You should use for that text variable and change your variable with decimal places to text using Java script.
7 Replies
Yes, its true. SL shows just 2 decimal places. You should use for that text variable and change your variable with decimal places to text using Java script.
Something like that:
Thanks but this method only seems to create a whole number (attached)
I guess you meant parseFloat() instead of parseInt()
Sorry, because I gave you incorrect example. Intstead parseInt() you should use parseFloat or Number.
var player = GetPlayer();
player.SetVar("wynik",Number(player.GetVar("TextEntry1"))+Number(player.GetVar("TextEntry")));
Unfortunately, I really need to do this without javascript as it doesn't work in the app. But thanks anyway.
This discussion is closed. You can start a new discussion or contact Articulate Support.