Mega Code Archive

 
Categories / Visual C++ .NET / Data Type
 

Decimal calculation

#include "stdafx.h" using namespace System; void main() {     Decimal a = (Decimal)123456789012345000000.00000000;     Decimal b = (Decimal)678901.23456780;     Decimal c = -(a + b);     Console::WriteLine( c ); }