Forum Discussion
Traci
7 years agoCommunity Member
Decimal Display
Hi! Thanks in Advance!
I understand that the default SL functionality is to display 2 decimal places for number variables. Does anyone know if there is anything that can be edited within a scorm f...
ZsoltOlah
Super Hero
It is actually even more mysterious. Let's say you have your number you enter as 1.1399. Once this gets into the SL variable, it's rounded to 1.14. BUT it is not the actual number stored in Storyline, it is just the number DISPLAYED.
You can test this by multiply the number (supposedly 1.14) by 1000 in JavaScript and you get 1139.9. That means SL keeps the actual 1.1399 number in the variable, it just doesn't show it.
Crystal-Horn
6 years agoStaff
Thanks, Zsolt, for that testing. I've added your comments to a report we have about decimal rounding with numeric variables.