Tests were added for double-to-integer conversion specifying round-half-away semantics (following GoogleSQL), but the implementations used the more common truncation (round towards zero), as is done natively in C, Go, and Java.
We'll standardize on round-towards-zero to match the implementations and the more common expectation of programmers.
Tests were added for double-to-integer conversion specifying round-half-away semantics (following GoogleSQL), but the implementations used the more common truncation (round towards zero), as is done natively in C, Go, and Java.
We'll standardize on round-towards-zero to match the implementations and the more common expectation of programmers.