Top "String-conversion" questions

String conversion is the act of converting data to and from character strings.

Convert string to double or float c#

I need to convert a string to double. Or float, whatever suits best for this type of conversion. The string …

c# double string-conversion
In MySQL, how do I insert 1 when string value is 'true', 0 when false, while preserving nulls

I am using an INSERT query that SELECTs from a plain-text database into a more query-friendly database. The following is …

mysql boolean insert-into string-conversion
Iterate through parts of a string

I have string in the form [3339:1.6101369,1062:1.5,5751:1.5,6376:1.5, ... ] I want to iterate through the comma separated key-value pairs. What is the best …

python string iterator string-conversion
"Unrecognized token 'com': was expecting ('true', 'false' or 'null')"

I have converted this json to string to save in local database { "type": "file", "id": "b665ff0b-5f7b-4991…

java android json string-conversion jsonexception
What is the difference between Number(...) and parseFloat(...)

What is the difference between parseInt(string) and Number(string) in JavaScript has been asked previously. But the answers basically …

javascript string-conversion
How to convert nsstring to cString?

I have a nsstring(filePath), which has the path to the audio file. I want open the audio file, so …

iphone ios c string-conversion
convert int into string with certain length of char

If the title wasn't clear, ill try to explain it well here. I have a bunch of integers, ranging from 1 …

c# string-conversion
Why does Resharper say, "Co-variant array conversion from string[] to object[] can cause run-time exception on write operation" with this code?

This code: comboBoxMonth.Items.AddRange(UsageRptConstsAndUtils.months.ToArray()); public static List<String> months = new List<String> { "…

c# resharper string-conversion covariant covariant-return-types
Python why does int("0") return false

I am trying to learn Python and can, for the life of it, not figure out, why this: i = raw_…

python validation int string-conversion