Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Dec 27, 2024
1 parent e504c67 commit 925be2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion velox/docs/functions/spark/decimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ Decimal Functions
-----------------
.. spark:function:: floor(x: decimal(p, s)) -> r: decimal(pr, 0)
Returns ``x`` rounded down to the type ``decimal(38, min({p} - {s} + min(1, {s})), 0)``.
Returns ``x`` rounded down to the type ``decimal(38, min(p - s + min(1, s)), 0)``.

::

SELECT floor(cast(1.23 as DECIMAL(3, 2))); -- 1 // Output type: decimal(2,0)

.. spark:function:: unaryminus(x: decimal(p, s)) -> r: decimal(p, s)
Expand Down

0 comments on commit 925be2d

Please sign in to comment.