-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add rounding functions with decimal type args #671
base: main
Are you sure you want to change the base?
Conversation
extensions/functions_rounding.yaml
Outdated
values: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR, | ||
AWAY_FROM_ZERO, TIE_DOWN, TIE_UP, TIE_TOWARDS_ZERO, TIE_TO_ODD ] | ||
nullability: DECLARED_OUTPUT | ||
return: decimal?<P1,S2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does s2 come from?
extensions/functions_rounding.yaml
Outdated
AWAY_FROM_ZERO, TIE_DOWN, TIE_UP, TIE_TOWARDS_ZERO, TIE_TO_ODD ] | ||
nullability: DECLARED_OUTPUT | ||
return: |- | ||
S2 = iff(s > 0, s, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output type derivation doesn't support referring to argument values. we've talked about supporting constant arguments but I don't think we've added to spec, have we?
No description provided.