how do i find multiples of x in a given range?

for grid purposes, i need to find multiples of X in a given range (Y and Z)…

ex:
given: Range Y and Z = 30, 200 and X = 32

from the range of 30 to 200 what are the multiples of 32

answer: 32,64,96,128,160,192

whats the algo in this?

confused ::

i need it for snapping my actors in a line

There’s no exception handling here, so don’t try searching for negative values or worse, the zero:

Take your number and divide it by 32 , branch of if % remainder is zero

thanks Everynone, I’ll try that… :slight_smile: