"John Machin" <[email protected]> wrote in message news:[email protected] > It's handy for checking how things work e.g. > > sqlite> select (-1) % 7; > -1 > sqlite> -- it's not a real modulo operator :-(
What do you feel is wrong with this result? What should a "real" modulo operator return, in your opinion? Before you answer, note that you very likely want this equality to hold for all a, b!=0 : a = q*b + r where q = a/b, r = a%b Igor Tanetnik _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

