Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

C# cast 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

PREVIOUS NEXT
Code Example
Csharp :: get object clicked unity 2d 
Csharp :: c# list string initialize inline 
Csharp :: resize image c# 
Csharp :: bold caption latex 
Csharp :: unity add explosion force 
Csharp :: create folder in appdata c# 
Csharp :: how to get rigidbody speed in unity 
Csharp :: bin/bash bad interpreter 
Csharp :: check animation end unity 
Csharp :: unity disable cursor 
Csharp :: c# how to add newline on text box 
Csharp :: c# current thread id 
Csharp :: get value from web.config c# 
Csharp :: compute months c# 
Csharp :: substring c# after character 
Csharp :: unity character controller ignore collision 
Csharp :: c# count specific element in list 
Csharp :: how to choose a random child in a gameobject unuity 
Csharp :: How To Copy a text C# unity 
Csharp :: unity get direction from one point to another 
Csharp :: C# infinite clock coroutine loop 
Csharp :: unity system time 
Csharp :: how to do if comands in c# 
Csharp :: how to set progress openedge driver name for odbc connection c# 
Csharp :: c# unity camera follow 
Csharp :: set decimal point c# 
Csharp :: c sharp int to string 
Csharp :: unity destroy self 
Csharp :: c# list get element from end 
Csharp :: how to remove raycast on a button unity 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =