Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Csharp string to double

// If you need to convert a string to a double you can use this :
var string = "12,05";
var double = Convert.toDouble(string); // This will be a double with the value of 12,05

// If for some reason you need to convert a string with a "." instead of a "," do this :
var string = "12.05";
var double = Convert.ToDouble(string.Replace(".", ",")); // And this will be the same as previous one
Comment

convert string into double in c#

Console.WriteLine(Convert.ToDouble("52,8725945"));
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity 2d detect click on sprite 
Csharp :: new Color from hex in unity 
Csharp :: unity textmesh pro 
Csharp :: c# summary link 
Csharp :: how to delete folder with files on c# 
Csharp :: remove repeated items in a list unity 
Csharp :: move gameobject in unity 2d 
Csharp :: c# read json file into object 
Csharp :: if animation ends 
Csharp :: check if gameobject exists unity 
Csharp :: c# private set 
Csharp :: unity destroy object when out of screen 
Csharp :: c# round number down 
Csharp :: c# empty char 
Csharp :: c# datediff minutes 
Csharp :: unity array to list 
Csharp :: c sharp gun shooting 
Csharp :: how to create a new folder with c# 
Csharp :: unity c# timer 
Csharp :: disable script in unity 
Csharp :: unity google play games plugin spam 
Csharp :: restart wpf application 
Csharp :: how to open any file on button click in winforms 
Csharp :: reference to another script unity 
Csharp :: camera follow player 
Csharp :: start new form c# 
Csharp :: how to know what object player touches unity 2D 
Csharp :: SIMPLE HTTP REQUEST C# 
Csharp :: c# read from text documenmt 
Csharp :: c# negative index 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =