Answer:
1 - it depend on programming language you are working with if it is in java it will show an error.
2 - by using force change you get value which is int z=0
when any float ot double is converted in int. it depend on decimals.
for e.g. if the number is 2.4 it will be treated as 2 in int.
if the number is 2.6 it will be treated as 3 in int