Decimal constructor : Decimal « Data Type « Visual C++ .NET






Decimal constructor

 

#include "stdafx.h"
using namespace System;

void main()
{
    Decimal z(0xeb1f0ad2, 0xab54a98c, 0, false, 0); // = 12345678901234567890
    Console::WriteLine( z );
}

   
  








Related examples in the same category

1.Cast to decimal
2.Decimal calculation
3.Using Decimal constructor
4.Break decimal up into 4 parts
5.Decimal literal assigned