Server Side Repeat Expression

Either this is a bug or me being very silly.

If I set a repeat Server Side and for the expression I set 1, it repeats once, which is as expected.
If I set the expression to 0, it repeats twice.
If I set the expression to 9 - 9, it repeats three times.
if I set the expression to 12 - 12, it repeats 4 times.
So its like subtraction is working like a square root rather than a subtract.

This is just for testing, I know you would not normally set a repeat like that, but I have 2 expressions I an comparing and they both have a number output, which works perfectly until the two numbers subtract each other to equal 0, then it repeats, but should not.

How are you setting your expression? Is it between {{ and }} ? Otherwise it is just a string and it repeats the number of characters.

Originally when I stared seeing the issue I had an expression of

{{apiGetProfile_forDBB.data.messagesTotal - query_total_msg_count_in_db[0].msg_li_B_total_msgs}}

The output of each expression is 9, so it should equate to 9-9=0, however I kept noticing it repeating twice, so I assume it is returning 2.
I did try ad the .toNumber() to it however it made no difference.

As a test I also tried

{{apiGetProfile_forDBB.data.messagesTotal}} - {{query_total_msg_count_in_db[0].msg_li_B_total_msgs}}

And I assume this one was reading as strings as it repeated 5 times, from 0-4

EDIT: To get around this for now I have added a condition before the repeat of

{{(apiGetProfile_forDBB.data.messagesTotal - query_total_msg_count_in_db[0].msg_li_B_total_msgs) == 0}}

So the repeat gets no data unless its going to produce a number other than 0