本文共 403 字,大约阅读时间需要 1 分钟。
LV_P1
= '1.999'. CALL FUNCTION 'ROUND' EXPORTING DECIMALS = 0 INPUT = LV_P1 SIGN = '-' IMPORTING OUTPUT = LV_P1.** CALL FUNCTION 'HR_NZ_ROUNDING_DECIMALS'* EXPORTING* value_in = LV_P1* conv_dec = 0 " 设置保留几位小数* IMPORTING* value_out = LV_P1* EXCEPTIONS* no_rounding_required = 1* decimals_greater_than_10 = 2* rounding_error = 3* OTHERS = 4. 转载于:https://www.cnblogs.com/eric0701/p/7391066.html