Hello,

http://www.sqlite.org/lang_corefunc.html, in the description of "abs",
says: "If X is the integer -9223372036854775807 then abs(X) throws an
integer overflow error since there is no equivalent positive 64-bit
two complement value."

However, 9223372036854775807 can be represented as a signed 64-bit
value (assuming two's complement binary representation). I presume
that -9223372036854775808 was intended instead, i.e. one less -- that
would be the smallest possible negative integer representable as a
signed 64-bit value, and has no corresponding representable positive
value.

So the last digit should be changed from "7" to "8" in the documentation.

Cheers,
Philip
-- 
Philip Newton <philip.new...@gmail.com>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to