Top "Type-conversion" questions

Type conversion is the way of implicitly or explicitly changing an entity of one data type into another.

How do I convert a String to an int in Java?

How can I convert a String to an int in Java? My String contains only numbers, and I want to …

java string int type-conversion
How do I parse a string to a float or int?

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to …

python parsing floating-point type-conversion integer
Easiest way to convert int to string in C++

What is the easiest way to convert from int to equivalent string in C++. I am aware of two methods. …

c++ string int type-conversion
How do I convert from int to String?

I'm working on a project where all conversions from int to String are done like this: int i = 5; String strI = "" + …

java string type-conversion
Converting a string to a date in JavaScript

How can I convert a string to a date in JavaScript? var st = "date in some format" var dt = new …

javascript date type-conversion date-parsing
How do I convert a string to a number in PHP?

I want to convert these types of values, '3', '2.34', '0.234343', etc. to a number. In JavaScript …

php casting type-conversion
How can I convert String to Int?

I have a TextBoxD1.Text and I want to convert it to an int to store it in a database. …

c# .net string int type-conversion
Create ArrayList from array

I have an array that is initialized like: Element[] array = {new Element(1), new Element(2), new Element(3)}; I would like to …

java arrays arraylist type-conversion
How do I check if a string is a number (float)?

What is the best possible way to check if a string can be represented as a number in Python? The …

python casting floating-point type-conversion
Convert String to double in Java

How can I convert a String such as "12.34" to a double in Java?

java string casting double type-conversion