Forum Discussion
HappilyCreative
3 years agoCommunity Member
How to Get Two Decimal Places or Cut Decimals with JavaScript in Storyline?
Hi,
I am trying to figure out how to get my number variable to either have two decimal places, or simply have the decimals cut and just round to the nearest whole number. I was able to achieve ge...
HappilyCreative
2 years agoCommunity Member
Hello! Getting back around to trying to figure this out. Attached is part of a prototype I had developed last year as a Storyline sample. If selecting a savings of 25%, the total saved at milestone 1 shows as $82,062.5. I am trying to get JavaScript to either make that display as $82,062.50 or round it to $82,063. Help with this will be much appreciated!