Liquid XML Studio 2019
Abs
Data Mapping > Data Mapper Functions > By Category > Maths > Abs
Function Name
ABS
Category
Maths
Icon
ABS
Description
Returns the absolute value of a specified number.
Inputs
Value The numeric value to get the absolute value for
Outputs
Result The absolute value
Remarks

Takes a numeric value and removes the sign from it.

If the value is not numeric then an error is raised (unless an in place cast is defined).

Examples

Source Data
Copy Code
<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Liquid XML Studio (https://www.liquid-technologies.com) -->
<Decimals xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\Common\Numbers.xsd">
    <Decimal>7194.954905803945093</Decimal>
    <Decimal>7570.634905803945093</Decimal>
    <Decimal>5754.914905803945093</Decimal>
    <Decimal>-7480.925094196054907</Decimal>
    <Decimal>-6851.065094196054907</Decimal>
</Decimals>

 

Output Data
Copy Code
<Decimals>
    <Decimal>7194.954905803945093</Decimal>
    <Decimal>7570.634905803945093</Decimal>
    <Decimal>5754.914905803945093</Decimal>
    <Decimal>7480.925094196054907</Decimal>
    <Decimal>6851.065094196054907</Decimal>
</Decimals>

This is a scalar function so the standard rules apply if multiple values are presented to one or more inputs.