On This Page

Home / Search/ Language Reference/ Functions/ Scalar Functions/ Mathematical Functions/abs

abs ​

The abs function calculates the absolute value of the input.

Syntax ​

abs( X )

Arguments ​

  • X: An integer or real number, or a timespan value.

Returns ​

Absolute value of x.

Examples ​

print num = -9999999
| extend newField = abs( num )