How would I format a string that that it always shows two decimals place so “5” = “5.00” and “5.1” = “5.10”
Thanks,
Carmen
How would I format a string that that it always shows two decimals place so “5” = “5.00” and “5.1” = “5.10”
Thanks,
Carmen
[[5.toFixed(2)]] => 5.00
[[5.005.toFixed(2)]] => 5.00
Thanks you.
Would you happen to know where things like this are documented?
I’m wondering how I would do this for the result of some math?
This:
[[(fives * 5).toFixed(2)]]
doesn’t work.
Thanks again,
Carmen
That should work fine assuming fives is a variable that contains only numbers and not a string.
You can find some documentation here: Axure Forums - Get help from the Axure Community
Also within Axure you can find special variables and methods here after clicking “Insert Variable Name or Function…”: