Parse Invariant Float - CSharp System

CSharp examples for System:String Parse

Description

Parse Invariant Float

Demo Code


using System.Globalization;
using System;/*from  ww  w . ja  v  a  2s .c  om*/

public class Main{
        public static float ParseInvariantFloat(this string floatString)
		{
			return float.Parse(floatString, CultureInfo.InvariantCulture.NumberFormat);
		}
}

Related Tutorials