Class RoundingModeExtensions
- Namespace
- ElectricDrill.AstraRpgFramework.Utils
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Extension methods for RoundingMode.
public static class RoundingModeExtensions
- Inheritance
-
objectRoundingModeExtensions
Methods
ApplyToInt(RoundingMode, double)
Converts value to an int using the specified rounding mode.
public static int ApplyToInt(this RoundingMode mode, double value)
Parameters
modeRoundingModeThe rounding strategy to apply.
valuedoubleThe value to convert.
Returns
- int
The rounded integer result.