Ruby: How to convert a string to boolean?

I have a value that will be one of four things: boolean true, boolean false, the string "true", or the string "false...

How to convert int to QString??

Is there a QString function which takes an int and outputs it as a QString? ...

Using ssize_t vs int?

Code I've got a function which I can write in one of four possible ways: int do_or_die(int retval); int do...

Convert 1,000,000 to 1.0E6 In JavaScript?

I am wondering how I can convert 1,000,000 to 1.0E6 in JavaScript. I'd like the complete opposite of the parseInt fu...

How could I convert data from string to long in c#?

How could i convert data from string to long in C#? I have data String strValue[i] ="1100.25"; now i want it in...

Cannot implicitly convert type 'customtype' to 'othercustomtype'?

I am new to C#. I have a Persons class and a User class which inherits from the Persons class. I my console I input ...

Error: 'int' object is not subscriptable - Python?

I was trying a simple piece of code, get someone's name and age and let him/her know when they turn 21... not consid...

Convert number in textview to int?

So, I am messing around with java/android programming and right now I am trying to make a really basic calculator. ...

Convert textbox text to integer?

I need to convert the text in the textbox of my xaml code to an integer value in C#. I am using .NET 4.0 and Visual ...

How to convert int to QString??

Is there a QString function which takes an int and outputs it as a QString? ...

SQL Server: Error converting data type nvarchar to numeric?

If I run the SQL query below; I get the following error: Error converting data type nvarchar to numeric. COLU...

Convert data.frame column to a vector??

I have a dataframe such as: a1 = c(1, 2, 3, 4, 5) a2 = c(6, 7, 8, 9, 10) a3 = c(11, 12, 13, 14, 15) aframe = data.f...

String to bytes in both Python 2 and 3?

My function needs to take input as either a string or binary data (e.g., read from a file). If it's a string, I want...