google / cel-spec

Common Expression Language -- specification and binary representation
https://cel.dev
Apache License 2.0
2.78k stars 222 forks source link

Convert double to integer via truncation. #192

Closed JimLarson closed 3 years ago

JimLarson commented 3 years ago

Matches behavior of C, Go, and Java.

Introduce a round() function for round-half-away like GoogleSQL.

Fixes #191

JimLarson commented 3 years ago

PTAL

JimLarson commented 3 years ago

Filed Issue #193 as a reminder to implement the math extension library with alternate ways of rounding.