|
|||||||||
Related Concepts | |||||||||
operator | abs |
Return type: Opaque The absolute value of a specified number.
Returns:
Syntax
abs bcd expression
Use abs
to get the absolute value of a floating point number or BCD number.
To get the absolute value of a BCD number, you must include the ombcd.xin file in your program. To get the absolute value of a floating point number, include the omfloat.xin file.
BCD Example:
The following program will output "$34.98":
include "ombcd.xin" process local bcd price set price to bcd -34.98 output "<$,NNZ.ZZ>" % abs price
Related Concepts BCD data type |
---- |