On Wed, Jan 21, 2015 at 10:32:07AM -0300, Werner Almesberger wrote:
>    This turned out to be me mistaking Python for Perl. Python copied C's
>    handling of division and integers. So 3 / 2 is 1, not 1.5.

If you want to be future-proof, you probably want to use python3, in
which 3/2 == 1.5 (and 4/2 == 2.0, not 2); you have to specify integer
division explicitly as 3//2 there.

Thanks,
Bas

_______________________________________________
Qi Hardware Discussion List
Mail to list (members only): [email protected]
Subscribe or Unsubscribe: 
http://lists.en.qi-hardware.com/mailman/listinfo/discussion

Reply via email to