Repository navigation
docs(querying): correct ceil, floor, and round return type to float - #1861
Conversation
|
@siddiqueirshad is attempting to deploy a commit to the Memgraph Team on Vercel. A member of the Team first needs to authorize it. |
katarinasupe
left a comment
There was a problem hiding this comment.
Thanks for catching this and for the clear fix! I checked the source, and ceil, floor and round do return FLOAT.
One more thing while you're in this table: all three also accept integers, so the input type is wrong too. Could you change the signatures to:
ceil(number: integer|float) -> (float)
floor(number: integer|float) -> (float)
round(number: integer|float) -> (float)
That matches how exp, log and the others are listed. Once that's in, I'll approve.
|
Hi @katarinasupe, thanks for the review! I have updated the input signatures for ceil, loor, and |
|
Thank you @siddiqueirshad! I will merge this to main once the checks are done. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary
According to the openCypher specification and Memgraph runtime evaluation, \ceil(), \loor(), and
ound()\ return floating-point numbers (\FLOAT) rather than integers.
In \pages/querying/functions.mdx, their signature tables previously listed -> (integer). This PR updates the signature definitions to accurately reflect -> (float)\ across all three functions.
Fixes memgraph/memgraph#5201