Skip to content

Instantly share code, notes, and snippets.

@suchja
Created May 22, 2021 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suchja/6aee060004475a0bd6fee638b3bbd0b5 to your computer and use it in GitHub Desktop.
Save suchja/6aee060004475a0bd6fee638b3bbd0b5 to your computer and use it in GitHub Desktop.
Daten konvertieren in C#
using System;
public class Program
{
public static void Main()
{
double stringToDoubleCovert = Convert.ToDouble("42.0815");
Console.WriteLine(stringToDoubleConvert);
double stringToDoubleParse = double.Parse("42.0815");
Console.WriteLine(stringToDoubleParse);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment