How can I calculate the remainder of the division?

I have a number 1.5, but I need to convert it to 5.

I want to get pair of numbers using float type. I can use an array, but to use a float number is simpler, especially in an array with other integer numbers.

For example, I have an array of numbers:

Array(1, 2, 4.1, 2, 1.8);

If I use inner array:

Array(1, 2, Array(4, 1), 2, Array(1, 8));

but it very large and I can get “Large script error” in Workshop

UPDATE:

Omg. I found the answer. MODULO, but it is the wrong way. It returns the floating part of the number - 0.5. I could get 5 using cast like (int) 0.5 but how can I do this in Workshop?

I made a converter:

variables

{

player:

125: BotCurrentDistanceToTarget

}

actions

{

Event Player.BotCurrentDistanceToTarget = Event Player.BotCurrentDistanceToTarget % 1 * 10;

While(Event Player.BotCurrentDistanceToTarget % 1 > 0.010 && Event Player.BotCurrentDistanceToTarget % 1 < 0.990);

Event Player.BotCurrentDistanceToTarget *= 10;

End;

}