# Single.Round メソッド

## オーバーロード

 Round(Single) 既定の丸めモード (ToEven) を使用して、値を最も近い整数に丸めます。 Round(Single, Int32) 既定の丸めモード (ToEven) を使用して、指定した桁数の小数部に値を丸めます。 Round(Single, MidpointRounding) 指定した丸めモードを使用して、値を最も近い整数に丸めます。 Round(Single, Int32, MidpointRounding) 既定の丸めモード (ToEven) を使用して、指定した桁数の小数部に値を丸めます。

## Round(Single)

``````public:
static float Round(float x) = System::Numerics::IFloatingPoint<float>::Round;``````
``public static float Round (float x);``
``static member Round : single -> single``
``Public Shared Function Round (x As Single) As Single``

x
Single

Single

## Round(Single, Int32)

``````public:
static float Round(float x, int digits) = System::Numerics::IFloatingPoint<float>::Round;``````
``public static float Round (float x, int digits);``
``static member Round : single * int -> single``
``Public Shared Function Round (x As Single, digits As Integer) As Single``

x
Single

digits
Int32

Single

## Round(Single, MidpointRounding)

``````public:
static float Round(float x, MidpointRounding mode) = System::Numerics::IFloatingPoint<float>::Round;``````
``public static float Round (float x, MidpointRounding mode);``
``static member Round : single * MidpointRounding -> single``
``Public Shared Function Round (x As Single, mode As MidpointRounding) As Single``

x
Single

mode
MidpointRounding

#### 戻り値

Single

を使用して`mode`最も近い整数に丸める`x`結果。

## Round(Single, Int32, MidpointRounding)

``````public:
static float Round(float x, int digits, MidpointRounding mode) = System::Numerics::IFloatingPoint<float>::Round;``````
``public static float Round (float x, int digits, MidpointRounding mode);``
``static member Round : single * int * MidpointRounding -> single``
``Public Shared Function Round (x As Single, digits As Integer, mode As MidpointRounding) As Single``

x
Single

digits
Int32

mode
MidpointRounding

#### 戻り値

Single

を使用して`mode`小数部に`digits`丸める`x`結果。