On Sun, 12 May 2013 10:59:39 -0400
Stephen Chrzanowski <pontia...@gmail.com> wrote:

> Correct me if I'm wrong, but the reason behind doing the int div
> first is due to integer division is faster than float division?

In the abstract, it's actually impossible to say that one or the other
type of division is faster.  C doesn't define bit patterns or sizes of
datatypes, only minima.  

It's more accurate to say that integer division is an operation defined
on integers, and floating point division is defined on floats.  They
are different, as different from each other as both are from string
concatenation.  

--jkl
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to