Top "Type-conversion" questions

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

How to convert / cast long to String?

I just created sample BB app, which can allow to choose the date. DateField curDateFld = new DateField("Choose Date: ", System.…

java string type-conversion long-integer
How to convert an Object {} to an Array [] of key-value pairs in JavaScript

I want to convert an object like this: {"1":5,"2":7,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0} into an array of key-value pairs like this: [[1,5],[2,7],[3,0],[4,0]...]. How can I convert …

javascript arrays type-conversion
How do you change the datatype of a column in SQL Server?

I am trying to change a column from a varchar(50) to a nvarchar(200). What is the SQL command to alter …

sql-server tsql type-conversion alter-table
How do I convert a String to an InputStream in Java?

Given a string: String exampleString = "example"; How do I convert it to an InputStream?

java string type-conversion inputstream
Convert integer to hexadecimal and back again

How can I convert the following? 2934 (integer) to B76 (hex) Let me explain what I am trying to do. I …

c# hex type-conversion
How can I convert string to datetime with format specification in JavaScript?

How can I convert a string to a date time object in javascript by specifying a format string? I am …

javascript datetime type-conversion
How to convert string to char array in C++?

I would like to convert string to char array but not char*. I know how to convert string to char* (…

c++ string type-conversion
Convert columns to string in Pandas

I have the following DataFrame from a SQL query: (Pdb) pp total_rows ColumnID RespondentCount 0 -1 2 1 3030096843 1 2 3030096845 1 and I want to …

python pandas string type-conversion
Converting String To Float in C#

I am converting a string like "41.00027357629127", and I am using; Convert.ToSingle("41.00027357629127"); or float.Parse("41.00027357629127"); These methods return 4.10002732E+15. When …

c# .net string floating-point type-conversion
How can I convert a character to a integer in Python, and viceversa?

I want to get, given a character, its ASCII value. For example, for the character a, I want to get 97, …

python integer char type-conversion