help with decimal integers comparrison

i've got a program wich does some calculations and has to make 2 numbers equal and that works just fine but when it has to see if the numbers are equal it just skips the check even though they are equal. I'm just using a simple function like:
if nr1c == nr2c:
but it won't work any idea why?