If i have a number and divide it by 10, it may create a number with a decimal. What if I cannot use decimal numbers? Is there a way to round up to ones or tens?

example:

set x to 55
set y to x/10
repeat y times
…do something
end repeat

set x to 5523
set y to (round (x / 10) / 10 rounding up) * 10 -- nearest 10
set z to (round (x / 10) / 100 rounding up) * 100 -- nearest 100
set q to (round (x / 10) / 1000 rounding up) * 1000 -- nearest 1000
return y & z & q

RoundDecimal(8.378, 1, down)
on RoundDecimal(NumberToRound, DecimalPlace, UpDown)
set RoundFactor to 10 ^ DecimalPlace
NumberToRound * RoundFactor
round result rounding UpDown
result / RoundFactor
end RoundDecimal