NFloat.Round メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Round(NFloat) |
既定の丸めモード (ToEven) を使用して、値を最も近い整数に丸めます。 |
Round(NFloat, Int32) |
既定の丸めモード (ToEven) を使用して、指定した桁数の小数部に値を丸めます。 |
Round(NFloat, MidpointRounding) |
指定した丸めモードを使用して、値を最も近い整数に丸めます。 |
Round(NFloat, Int32, MidpointRounding) |
既定の丸めモード (ToEven) を使用して、指定した桁数の小数部に値を丸めます。 |
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
使用して最も近い整数に丸める結果。
実装
適用対象
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
小数部の桁数。
戻り値
既定の丸めモードをx
digits
使用して小数部に丸める結果。
実装
適用対象
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, 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
結果。
実装
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET