Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.14.0
Description
Run the following SQL
SELECT TRUNCATE(123.456, 2), TRUNCATE(123.456, 0), TRUNCATE(123.456, -2), TRUNCATE(CAST(123.456 AS DOUBLE), 2), TRUNCATE(CAST(123.456 AS DOUBLE), 0), TRUNCATE(CAST(123.456 AS DOUBLE), -2)
The result is
123.450 123.000 100.000 123.45 123.0 100.0
It seems that the resulting scale of TRUNCATE(DECIMAL, ...) is the same as that of the input decimal.
Attachments
Issue Links
- links to