why cannot / decimal point?

 
lot size = 0.8 / 2; //success become 0.4

lot size = 0.6 / 1.5; //fail to become 0.4 WHY?
 
Eng Keat Ang

Please check what type is your variable . must be double lot_size . 

 
Eng Keat Ang:

Could you please sending all the codes here ?  I just tried , it works . 

Reason: