Skip to content

Specify that int(double) accepts -2^63 and uint(double) rejects negative inputs - #545

Open
l46kok wants to merge 1 commit into
cel-expr:masterfrom
l46kok:minimum-int-double-conv
Open

l46kok wants to merge 1 commit into
cel-expr:masterfrom
l46kok:minimum-int-double-conv

Conversation

@l46kok

@l46kok l46kok commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

int(-9223372036854775808.0) was specified as a range error, although the double is exactly the minimum int. It now returns the minimum int.

Spec is also updated to explicitly reject uint(-0.5), to avoid ambiguity caused by rounding or truncation.

…ive inputs

`int(-9223372036854775808.0)` was specified as a range error, although
the double is exactly the minimum int; it now returns the minimum int.

Spec is also updated to explicitly reject uint(-0.5), to avoid ambiguity caused by rounding or truncation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant