Class DoubleExtensions
A static class providing double extensions
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public static class DoubleExtensions
Methods
RoundToInt(double)
Rounds the provided number away to zero and casts the result to an int
Declaration
public static int RoundToInt(this double number)
Parameters
| Type | Name | Description |
|---|---|---|
| double | number | The number to round |
Returns
| Type | Description |
|---|---|
| int | The rounded number as an integer |