+ 2
How to convert strings
What is the code to convert a string to an integer?
3 Respostas
+ 6
How to convert int to string: int x = Convert.ToInt32(x).
You can convert things to strings with this: string x = Convert.ToString(x)
I think you can guess how to convert things to float, char, etc. *Note: only add the 32 to things converting to an int.
+ 4
There are several ways, see here:
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/types/how-to-convert-a-string-to-a-number
0
Ok thanks