Mega Code Archive
Categories
/
Visual C++ .NET
/
Data Type
Convert String to decimal
#include "stdafx.h" using namespace System; void main() { Decimal w = System::Convert::ToDecimal("123456789012345678901.2345678"); Console::WriteLine( w ); }