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