In a Python REPL: > > >>> 0.7 + 0.1 > 0.79999999999999993 > >>> _ * 10 > 7.9999999999999991 > >>> int(_) > 7 > >>>
Thanks a lot Roshan , Ya i do agree with you and the same thing should happen in php as well i guess but if it is so then *echo (float) ((0.1+0.7)*10); * should print the value as "7.99999993" instead of "8".. so getting confused here again.. Why python gives 7.99999993 instead of 8..wat was the logic behind that??? Regards, Praba _______________________________________________ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc