I was haunting one strange problem with my compounds, that worked fine, but for some isolated combination of value everything was broken.
It was a strange ride, but i reduced the problem to the simplest form and i am asking you if you find it correct or not.
I am doing an integer division. there is not a direct node for it, so i have a compound that converts integer to scalar and uses "divide by scalar" .the result is later
used to return both division and "modulo".
the problem is the conversion int->scalar. because of the precision for some numbers A div A is 0 as you can see on the attached screenshot.
i was expecting precision problems for bigger numbers....
so,what is the most elegant way to compute integer division (with a remainder - if it is correct english term for it) ?