Convert String to decimal : String to Number « Data Type « Visual C++ .NET






Convert String to decimal

 
#include "stdafx.h"
using namespace System;

void main()
{
    Decimal w = System::Convert::ToDecimal("123456789012345678901.2345678");
    Console::WriteLine( w );
}

   
  








Related examples in the same category

1.Convert Strings to Numbers
2.parse the string to get the integer value