Formatting Numbers for Display

Jun 14, 2017

Hi,

I've created a Manager's Cash Simulation (using Storyline 2) and am trying to display numeric reference variables with thousands separators. For example, 17,233.00 versus 17233. I don't see how to do this. Am I missing something fundamental here?

Also, is there a simple way (or otherwise) to add the $ sign as needed?  Such as $17,233 versus 17233?

Thank you!

Kellie

5 Replies
Michael Anderson

Kellie, I've just updated the project and attached a new file here, so that the script gives you the correct decimal points too. You can see the actual script by inspecting the trigger, then clicking the button with the 3 little dots. The script gets the value of the "NumericEntry" variable from Storyline and then sets the value of the "newNumber" variable in Storyline, which is the displayed result that you want. You can copy and paste this trigger, or the script code itself into any project you like. Let me know if you need more help.

Kellie Mitchell

This discussion is closed. You can start a new discussion or contact Articulate Support.