Mega Code Archive
Categories
/
C# Tutorial
/
Data Type
Using float Parse() to Convert a string to a Numeric Data Type
class MainClass { static void Main() { string text = "9.11E-31"; float kgElectronMass = float.Parse(text); } }