Decimal32.Round Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Round(Decimal32, MidpointRounding) | |
| Round(Decimal32, Int32, MidpointRounding) | |
| Round(Decimal32) | |
| Round(Decimal32, Int32) |
Round(Decimal32, MidpointRounding)
- Source:
- Decimal32.cs
public:
static System::Numerics::Decimal32 Round(System::Numerics::Decimal32 x, MidpointRounding mode) = System::Numerics::IFloatingPoint<System::Numerics::Decimal32>::Round;
public static System.Numerics.Decimal32 Round(System.Numerics.Decimal32 x, MidpointRounding mode);
static member Round : System.Numerics.Decimal32 * MidpointRounding -> System.Numerics.Decimal32
Public Shared Function Round (x As Decimal32, mode As MidpointRounding) As Decimal32
Parameters
- mode
- MidpointRounding
Returns
Implements
Applies to
Round(Decimal32, Int32, MidpointRounding)
- Source:
- Decimal32.cs
public:
static System::Numerics::Decimal32 Round(System::Numerics::Decimal32 x, int digits, MidpointRounding mode) = System::Numerics::IFloatingPoint<System::Numerics::Decimal32>::Round;
public static System.Numerics.Decimal32 Round(System.Numerics.Decimal32 x, int digits, MidpointRounding mode);
static member Round : System.Numerics.Decimal32 * int * MidpointRounding -> System.Numerics.Decimal32
Public Shared Function Round (x As Decimal32, digits As Integer, mode As MidpointRounding) As Decimal32
Parameters
- digits
- Int32
- mode
- MidpointRounding
Returns
Implements
Applies to
Round(Decimal32)
- Source:
- Decimal32.cs
public:
static System::Numerics::Decimal32 Round(System::Numerics::Decimal32 x) = System::Numerics::IFloatingPoint<System::Numerics::Decimal32>::Round;
public static System.Numerics.Decimal32 Round(System.Numerics.Decimal32 x);
static member Round : System.Numerics.Decimal32 -> System.Numerics.Decimal32
Public Shared Function Round (x As Decimal32) As Decimal32
Parameters
Returns
Implements
Applies to
Round(Decimal32, Int32)
- Source:
- Decimal32.cs
public:
static System::Numerics::Decimal32 Round(System::Numerics::Decimal32 x, int digits) = System::Numerics::IFloatingPoint<System::Numerics::Decimal32>::Round;
public static System.Numerics.Decimal32 Round(System.Numerics.Decimal32 x, int digits);
static member Round : System.Numerics.Decimal32 * int -> System.Numerics.Decimal32
Public Shared Function Round (x As Decimal32, digits As Integer) As Decimal32
Parameters
- digits
- Int32