SAP ABAP 数字操作的abap语句,语法abs, sign, ceil, floor, trunc, frac - Numerical Functions

abs, sign, ceil, floor, trunc, frac - Numerical Functions

The following table shows the general numerical functions for a single unnamed argument with any numerical data type. These functions are overloaded with the effect that the return value can have different numerical types

 

 

abs, sign, ceil, floor, trunc, frac

 

Functionfunc Return value
abs Absolute value of argument arg                                                                                   
sign Sign of argument arg: -1, if the value of arg is negative; 0, if the value of arg is 0; 1, if the value of arg is positive
ceil Smallest integer that is not less than the value of the argument arg is
floor Largest integer that is not greater than the value of the argument arg is
trunc Value of the integer part of the argument arg
frac Value of the decimal places of the argument arg
 

 

SAP ABAP 数字操作的abap语句,语法abs, sign, ceil, floor, trunc, frac - Numerical Functions,布布扣,bubuko.com

文章来自:http://blog.csdn.net/forever_crazy/article/details/21228947
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3