source: 2012/23/AnttiJussiL/Desipilkku/Desipilkku/Program.cs @ 2776

Revision 2776, 632 bytes checked in by anlakane, 10 years ago (diff)

Lisäsin yhden pikkukommentin.

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Globalization;
6
7// pien imuutos
8
9
10namespace Desipilkku
11{
12    class Program
13    {
14        static void Main(string[] args)
15        {
16            NumberFormatInfo nfi = new NumberFormatInfo();
17            nfi.NumberDecimalSeparator = ".";
18
19            double l = double.Parse("2.3", NumberStyles.Any, nfi);
20            nfi.NumberDecimalSeparator = ",";
21            double k = double.Parse("2,3", NumberStyles.Any, nfi);
22            Console.WriteLine(l);
23            Console.WriteLine(k);
24        }
25    }
26}
Note: See TracBrowser for help on using the repository browser.