[Solved] Need some help with simplifying a variable

What I’m doing is quite hard to explain, so I’m just going to tell you. I’ve set the X position of an Object to a variable, and modified some text to display the variables value onto the text. but it has a whole bunch of numbers displaying and I was wondering how I can simplify it to just show the X position with out a decimal?
I’ve done this once before but that was a while ago and since have forgotten.

Use trunc or round :


Or ToString(round(Object.Variable(xPosition)))

So for me would it ToString(trunc(hiddenscroll.Variable(Scroll)))?

Yes, if Scroll is the variable on object hiddenscroll.

Better still, try it out :slight_smile:

It worked, thanks a lot