Member group
Round
Declaring type: Decimal
Module: System
Assembly: System.Runtime.dll
Source file: Decimal.rvn
Overloads / Variants
Round
static func Round(value: decimal, decimals: int) -> decimal
Source file: Decimal.rvn
Rounds to 0–28 fractional places using nearest, ties-to-even; invalid precision faults.
Parameters
| Name | Type | Description |
|---|---|---|
value |
Decimal | |
decimals |
Int32 |
Return value
Round
static func Round(value: decimal) -> decimal
Source file: Decimal.rvn
Rounds to an integral value using nearest, ties-to-even.
Parameters
| Name | Type | Description |
|---|---|---|
value |
Decimal |