Enum RoundingMode
- Namespace
- ElectricDrill.AstraRpgFramework.Utils
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Specifies how a double value is rounded to the nearest integer.
public enum RoundingMode
- Extension Methods
Fields
Ceil = 2Rounds up to the smallest integer greater than or equal to the value (e.g. 2.1 → 3, −2.9 → −2).
Floor = 1Rounds down to the largest integer less than or equal to the value (e.g. 2.9 → 2, −2.1 → −3).
Round = 0Rounds to the nearest integer, with midpoint values rounding away from zero (e.g. 2.5 → 3, −2.5 → −3).