Summary
Returns the absolute value of the specified number
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- MathFunctions
Syntax
[Function("abs")]
public static double Abs(double value)
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Parameters
Name | Type | Description |
---|---|---|
value | double | value to take the absolute value from |
Return Value
Type | Description |
---|---|
double | value when value is greater than or equal to zero; otherwise, -value. |