Table of Contents

Class FloatExtensions

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

A static class providing float extensions

public static class FloatExtensions
Inheritance
object
FloatExtensions

Methods

RoundToInt(float)

Rounds the provided number away to zero and casts the result to an int

public static int RoundToInt(this float number)

Parameters

number float

The number to round

Returns

int

The rounded number as an integer