Summary
Class which provides NAnt functions for working with floating point numbers.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Base Types
-
- Object
- FunctionSetBase
graph BT
Type-->Base0["FunctionSetBase"]
click Base0 "/api/NAnt.Core/FunctionSetBase"
Base0-->Base1["Object"]
Type["MathFunctions"]
class Type type-node
Syntax
[FunctionSet("math", "Math")]
public class MathFunctions : FunctionSetBase
Attributes
Type | Description |
---|---|
FunctionSetAttribute | Indicates that class should be treated as a set of functions. |
Constructors
Name | Summary |
---|---|
MathFunctions |
Initializes a new instance of the NAnt.Core.Functions.MathFunctions class.
|
Properties
Name | Value | Summary |
---|---|---|
Project | Project |
Gets or sets the
NAnt.Core.FunctionSetBase.Project that this functionset will
reference.
Inherited from FunctionSetBase
|
Methods
Name | Value | Summary |
---|---|---|
Abs |
double |
Returns the absolute value of the specified number
static
|
Ceiling |
double |
Returns the smallest whole number greater than or equal to the specified number
static
|
Floor |
double |
Returns the largest whole number less than or equal to the specified
number.
static
|
Round |
double |
Rounds the value to the nearest whole number
static
|