NFloat.Round メソッド

定義

オーバーロード

Round(NFloat, Int32, MidpointRounding)

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

Round(NFloat, MidpointRounding)

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

Round(NFloat, Int32)

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

Round(NFloat)

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

Round(NFloat, Int32, MidpointRounding)

ソース:
NFloat.cs
ソース:
NFloat.cs
ソース:
NFloat.cs

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

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

パラメーター

x
NFloat

丸める値。

digits
Int32

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

mode
MidpointRounding

丸める x 必要があるモード。

戻り値

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

実装

適用対象

Round(NFloat, MidpointRounding)

ソース:
NFloat.cs
ソース:
NFloat.cs
ソース:
NFloat.cs

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

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

パラメーター

x
NFloat

丸める値。

mode
MidpointRounding

丸める x 必要があるモード。

戻り値

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

実装

適用対象

Round(NFloat, Int32)

ソース:
NFloat.cs
ソース:
NFloat.cs
ソース:
NFloat.cs

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

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

パラメーター

x
NFloat

丸める値。

digits
Int32

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

戻り値

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

実装

適用対象

Round(NFloat)

ソース:
NFloat.cs
ソース:
NFloat.cs
ソース:
NFloat.cs

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

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

パラメーター

x
NFloat

丸める値。

戻り値

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

実装

適用対象