Division (Whole and Remainder) Is Incorrect

Hey thanks for the fast reply here is my set up

its a little messy but i did what you said about swapping the numbers around but the results are still not right i know for a fact that the number going in to the node is 4 so the result should be return value of 2 no remainder and i get that being set to the array you can see in the image but after that i set a variable to the return value as well but for some reason that variable is being set as 0, and it does this no matter what the input number is or the way the node gets it (even if i manually enter it to the node)