Half.Round メソッド

定義

オーバーロード

名前 説明
Round(Half)

既定の丸めモード (ToEven) を使用して、値を最も近い整数に丸めます。

Round(Half, Int32)

既定の丸めモード (ToEven) を使用して、指定した桁数の小数部に値を丸めます。

Round(Half, MidpointRounding)

指定した丸めモードを使用して、値を最も近い整数に丸めます。

Round(Half, Int32, MidpointRounding)

既定の丸めモード (ToEven) を使用して、指定した桁数の小数部に値を丸めます。

Round(Half)

ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs

既定の丸めモード (ToEven) を使用して、値を最も近い整数に丸めます。

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

パラメーター

x
Half

丸める値。

返品

既定の丸めモードを使用して、 x を最も近い整数に丸める結果。

実装

適用対象

Round(Half, Int32)

ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs

既定の丸めモード (ToEven) を使用して、指定した桁数の小数部に値を丸めます。

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

パラメーター

x
Half

丸める値。

digits
Int32

xを丸める必要がある小数部の桁数。

返品

既定の丸めモードを使用して x を小数部 digits に丸める結果。

実装

適用対象

Round(Half, MidpointRounding)

ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs

指定した丸めモードを使用して、値を最も近い整数に丸めます。

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

パラメーター

x
Half

丸める値。

mode
MidpointRounding

xを丸めるモード。

返品

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

実装

適用対象

Round(Half, Int32, MidpointRounding)

ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs
ソース:
Half.cs

既定の丸めモード (ToEven) を使用して、指定した桁数の小数部に値を丸めます。

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

パラメーター

x
Half

丸める値。

digits
Int32

xを丸める必要がある小数部の桁数。

mode
MidpointRounding

xを丸めるモード。

返品

xを使用して小数部digitsmodeを丸める結果。

実装

適用対象