Bingo, I live and learn
On 5/28/10, Igor Tandetnik <[email protected]> wrote: > Igor Tandetnik wrote: >> Matt Young <[email protected]> wrote: >>> I second that documentation confusion. There is no truncate to >>> integer, though I wish it would. >> >> Somewhat off-topic, but if you want truncation, this would do it: round(x >> - 0.5) . > > Actually, cast(x as integer) works better. It follows the usual C rules, > like (int)x for x declared as double. > -- > Igor Tandetnik > > _______________________________________________ > sqlite-users mailing list > [email protected] > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

