Summary
Rounds the value to the nearest whole number
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- MathFunctions
Syntax
[Function("round")]
public static double Round(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 | Number to be rounded, can be anything convertible to a double. |
Return Value
| Type | Description |
|---|---|
| double | Rounded value. |
