言語

IFloatingPoint<TSelf>.Round メソッド

定義

オーバーロード

名前 説明
Round(TSelf)

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

Round(TSelf, Int32)

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

Round(TSelf, MidpointRounding)

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

Round(TSelf, Int32, MidpointRounding)

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

Round(TSelf)

ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs

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

public:
 static override TSelf Round(TSelf x);
public static virtual TSelf Round(TSelf x);
static member Round : 'Self -> 'Self
Public Shared Overrides Function Round (x As TSelf) As TSelf

パラメーター

x
TSelf

丸める値。

返品

TSelf

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

適用対象

Round(TSelf, Int32)

ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs

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

public:
 static override TSelf Round(TSelf x, int digits);
public static virtual TSelf Round(TSelf x, int digits);
static member Round : 'Self * int -> 'Self
Public Shared Overrides Function Round (x As TSelf, digits As Integer) As TSelf

パラメーター

x
TSelf

丸める値。

digits
Int32

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

返品

TSelf

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

適用対象

Round(TSelf, MidpointRounding)

ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs

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

public:
 static override TSelf Round(TSelf x, MidpointRounding mode);
public static virtual TSelf Round(TSelf x, MidpointRounding mode);
static member Round : 'Self * MidpointRounding -> 'Self
Public Shared Overrides Function Round (x As TSelf, mode As MidpointRounding) As TSelf

パラメーター

x
TSelf

丸める値。

mode
MidpointRounding

xを丸めるモード。

返品

TSelf

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

適用対象

Round(TSelf, Int32, MidpointRounding)

ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs
ソース:
IFloatingPoint.cs

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

public:
 static TSelf Round(TSelf x, int digits, MidpointRounding mode);
public static abstract TSelf Round(TSelf x, int digits, MidpointRounding mode);
static member Round : 'Self * int * MidpointRounding -> 'Self
Public Shared Function Round (x As TSelf, digits As Integer, mode As MidpointRounding) As TSelf

パラメーター

x
TSelf

丸める値。

digits
Int32

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

mode
MidpointRounding

xを丸めるモード。

返品

TSelf

modeを使用して小数部digitsxを丸める結果。

適用対象