次の方法で共有


SqlDecimal.Round メソッド

指定した精度で、指定した SqlDecimal 構造体の値に最も近い数値を取得します。

Public Shared Function Round( _
   ByVal n As SqlDecimal, _   ByVal position As Integer _) As SqlDecimal
[C#]
public static SqlDecimal Round(SqlDecimaln,intposition);
[C++]
public: static SqlDecimal Round(SqlDecimaln,intposition);
[JScript]
public static function Round(
   n : SqlDecimal,position : int) : SqlDecimal;

パラメータ

  • n
    丸められる SqlDecimal 構造体。
  • position
    戻り値の有効小数桁数 (精度)。

戻り値

丸め演算の結果を格納している SqlDecimal 構造体。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

SqlDecimal 構造体 | SqlDecimal メンバ | System.Data.SqlTypes 名前空間