display decimal point without the 0 behind.
ultima
Member, PRO Posts: 1,207
Hi friends, i know you can set the numbers to display a certain number of 0's after the decimal point. but is there a way to display 123. without getting into text string etc. thanks in advance.
Comments
No, not if you want the decimal point. The expression would need to be round(game.number).."."
I thought maybe padReal(game.number,4,0) would work but using 0 as the last parameter results in unpredictable values.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
thank you, yes i'd have to go into all the numbers and add the text string maybe i should have designed it to display text string in the first place and convert to numbers.
You don't have to add a text attribute. Wherever you have your Display Text, just change it from game.number to game.number.."."
Yes, you have to open the expression editor, but it's not different than if you had to round the number, for example.
Another option would be to add a second Display Text with just the period (.) in the field and position it to the right of the number. That's a much more clunky method.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User