Artemis Artemis
Artemis Artemis

Search Results for

    Class FloatExtensions

    A static class providing float extensions

    Inheritance
    object
    FloatExtensions
    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

    Content is available under the PolyForm Noncommercial License, by Artemis RGB.