Parsing: int, float, bool : float parse « Data Type « C# / CSharp Tutorial






using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Security.Cryptography;

public class MainClass
{
    public static void Main()
    {

        int i = int.Parse("550");
        float f = float.Parse("21.99328");
        bool b = bool.Parse("True");
    }
}








2.23.float parse
2.23.1.Parsing: int, float, bool
2.23.2.Using float.Parse() to Convert a string to a Numeric Data Type