How to get the remainder?

I’m creating an dynamic component.
But i need to get the remainder of a division.
I need to check if the result of my lenght % tiles is equal = 0 or 1.
0 for integer withou remainder number and 1 for decimal numbers.

Have a look here:

Dynamic Components Math Function Examples | SketchUp Help

1 Like

to get a remainder you take an integer from a real

num/parts - int(num/parts) = remainder

if(num/parts - int(num/parts),1,0)