Table of Contents

Class RoundingModeExtensions

Namespace
ElectricDrill.AstraRpgFramework.Utils
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

Extension methods for RoundingMode.

public static class RoundingModeExtensions
Inheritance
object
RoundingModeExtensions

Methods

ApplyToInt(RoundingMode, double)

Converts value to an int using the specified rounding mode.

public static int ApplyToInt(this RoundingMode mode, double value)

Parameters

mode RoundingMode

The rounding strategy to apply.

value double

The value to convert.

Returns

int

The rounded integer result.