Absolute Value

Logic name
Absolute Value (Document Mapper/Variable Mapper/Merge Mapper)
Function
This logic returns absolute values of the input numbers.
Data types
Location |
Type |
---|---|
First input handler |
Numeric |
Logic output |
Numeric |
Refer to the following for details:
-
Logic specifications (Document Mapper/Variable Mapper)
-
Logic specifications (Merge Mapper)
Properties
Category |
Property |
Description |
---|---|---|
Comment |
Comment |
You can write a description of the logic. It doesn't affect the conversion process. |
Notes
-
The logic returns the same value for the minimum value of type int (-231).
-
The logic returns the same value for the minimum value of type long (-263).
-
Absolute values of floating point type may contain rounding errors.
Logic sample
Mapping definition

Logic settings and processing result
The logic outputs absolute values of the numbers of input data.
Property settings
Property |
Setting |
---|---|
None |
|
Input data
-2.3 |
4.5 |
-6 |
Output data
2.3 |
4.5 |
6 |
For a list of logics, refer to Mapper Logic Guide.