functions_rounding_decimal.yaml¶
This document file is generated for functions_rounding_decimal.yaml
Scalar Functions¶
ceil¶
Implementations: ceil(x
): -> return_type
0. ceil(decimal<P,S>
): ->
integral_least_num_digits = P - S + 1
precision = min(integral_least_num_digits, 38)
decimal?<precision, 0>
*Rounding to the ceiling of the value x
. *
floor¶
Implementations: floor(x
): -> return_type
0. floor(decimal<P,S>
): ->
integral_least_num_digits = P - S + 1
precision = min(integral_least_num_digits, 38)
decimal?<precision, 0>
*Rounding to the floor of the value x
. *
round¶
Implementations: round(x
, s
, option:rounding
): -> return_type
- round(
decimal<P,S>
,i32
,option:rounding
): ->precision = min(P + 1, 38) decimal?<precision, S>
*Rounding the value x
to s
decimal places. *