Feature #2218: Truncate values in expression evaluation
(cherry picked from commit 6badf786babd05a78be61c6e4821de8fc97f2801)