Top "Type-conversion" questions

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

Convert a character digit to the corresponding integer in C

Is there a way to convert a character to an integer in C? For example, from '5' to 5?

c type-conversion
How to convert int to QString?

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

c++ qt type-conversion
Converting characters to integers in Java

Can someone please explain to me what is going on here: char c = '+'; int i = (int)c; System.…

java integer type-conversion character primitive
Returning Month Name in SQL Server Query

Using SQL Server 2008, I have a query that is used to create a view and I'm trying to display a …

sql sql-server-2008 type-conversion
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.frame(a1, a2, a3) I tried …

r dataframe vector type-conversion
Converting string to double in C#

I have a long string with double-type values separated by # -value1#value2#value3# etc I splitted it to string table. …

c# string double type-conversion
How to convert numbers between hexadecimal and decimal

How do you convert between hexadecimal numbers and decimal numbers in C#?

c# hex type-conversion decimal
How to convert a double to long without casting?

What is the best way to convert a double to a long without casting? For example: double d = 394.000; long l = (…

java type-conversion
convert double to int

What is the best way to convert a double to an int? Should a cast be used?

c# .net casting type-conversion
Checking if a string can be converted to float in Python

I've got some Python code that runs through a list of strings and converts them to integers or floating point …

python string type-conversion