Rounding of numbers
Constructor | Description |
Full Usage:
Rounding()
|
|
Static member | Description |
Full Usage:
Rounding.RoundDown(i, n)
Parameters:
int
-
The number to round down.
n : int
-
The rounding step.
Returns: int
|
This returns the next number k with k lesser or equal i, and k mod n == 0.
|
Full Usage:
Rounding.RoundDown(i, n)
Parameters:
int64
-
The number to round down.
n : int64
-
The rounding step.
Returns: int64
|
This returns the next number k with k lesser or equal i, and k mod n == 0.
|
Full Usage:
Rounding.RoundToNumberOfSignificantDigits(x, significantDigits, rounding)
Parameters:
float
-
The value to round.
significantDigits : int
-
The number of significant digits.
rounding : MidpointRounding
-
The rounding rule that should be applied.
Returns: float
The number, rounded to the provided number of significant digits.
|
Rounds a double number to the provided number of significant digits.
|
Full Usage:
Rounding.RoundUp(i, n)
Parameters:
int
-
The number to round up.
n : int
-
The rounding step.
Returns: int
|
This returns the next number k with k greater or equal i, and k mod n == 0.
|
Full Usage:
Rounding.RoundUp(i, n)
Parameters:
int64
-
The number to round up.
n : int64
-
The rounding step.
Returns: int64
|
This returns the next number k with k greater or equal i, and k mod n == 0.
|