On Tue, Mar 17, 2009 at 11:05 AM, praba karan <praba...@gmail.com> wrote:
> *echo (float) ((0.1+0.7)*10);
> *
> should print the value as "7.99999993" instead of "8".. so getting confused
> here again..
>
Yes, but I don't know how PHP works.  Should be easy to check up online.

> Why python gives 7.99999993 instead of 8..wat was the logic behind that???
>
Floating point operations are inexact.

Regards,
Roshan
_______________________________________________
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

Reply via email to