I don't really get the idea, why saving the result of this calculation in a double doesn't give me the right result: double a = 9/5 ; shouldn't it be the same as : double a = 9/5.0 ; Still I get totally different results and I am wondering why.