Variable z2 is not returning the real value, which is the ~z1. The formula is right but somehow it doesnt work, maybe someone could explain why. Many thanks in advance.
the division of an integer with another integer always gives an integer until and unless it is explicitly converted to float. here in this case 1 is an integer, 4 is also an integer. hence the result i.e. 0.25 is converted to integer which turns out to be 0.