Decimal.Add メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

戻り値
d1 と d2 の和である Decimal 値。


Add の使用方法については、次のコード例を参照してください。
Class PiggyBank Public Sub AddPenny() MyFortune = [Decimal].Add(MyFortune, 0.01D) End Sub Public Overrides Function ToString() As String Return MyFortune.ToString("C") + " in piggy bank" End Function Protected MyFortune As Decimal End Class
class PiggyBank { public void AddPenny() { MyFortune = Decimal.Add(MyFortune, .01m); } public override string ToString() { return MyFortune.ToString("C")+" in piggy bank"; } protected decimal MyFortune; }
public ref class PiggyBank { public: void AddPenny() { MyFortune = Decimal::Add( MyFortune, (Decimal).01 ); } virtual System::String^ ToString() override { return MyFortune.ToString("C")+" in piggy bank"; } protected: Decimal MyFortune; }; }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDecimal.Add メソッドを検索する場合は、下記のリンクをクリックしてください。

- Decimal.Add メソッドのページへのリンク