Table of Contents

Class Abs

Namespace
YndigoBlue.Velocity.Functions
Assembly
YndigoBlue.Velocity.dll

Represents the ABS (absolute value) mathematical function that returns the non-negative value of a number.

public class Abs : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
Inheritance
Abs
Implements

Remarks

The ABS function calculates the absolute value, removing the sign from negative numbers while leaving positive numbers unchanged. For example, ABS(-5) returns 5, and ABS(5) returns 5. This is useful for calculating distances, differences, or magnitude values regardless of sign.

Constructors

Abs(IEnumerable<IElement>)

Initializes a new instance of ABS for multiple elements.

Abs(IElement)

Initializes a new instance of ABS for a single element.