Top "Type-conversion" questions

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

What to_unsigned does?

Could someone please explain me how VHDL's to_unsigned works or confirm that my understanding is correct? For example: C(30 …

type-conversion vhdl unsigned twos-complement signed-integer
Convert integer to string without access to libraries

I recently read a sample job interview question: Write a function to convert an integer to a string. Assume you …

c string int type-conversion itoa
Converting dates with PHP for DATETIME in SQL

I have a forum in PHP which takes a date like in the form dd/mm/yyyy hh:mm:ss. …

php mysqli sqldatatypes type-conversion
Convert rune to int?

In the following code, I iterate over a string rune by rune, but I'll actually need an int to perform …

go type-conversion idioms rune
Converting categorical values to binary using pandas

I am trying to convert categorical values into binary values using pandas. The idea is to consider every unique categorical …

python numpy pandas type-conversion categorical-data
Julia: Convert numeric string to float or int

I am trying to write numeric data pulled from a database into a Float64[]. The original data is in ::ASCIIString …

string floating-point type-conversion julia
Crystal report issue with int to string conversion

I want to convert int to string and then concatenate dot with it. Here is the formula totext({#SrNo})+ "." It …

crystal-reports type-conversion crystal-reports-2008
Converting number in scientific notation to int

Could someone explain why I can not use int() to convert an integer number represented in string-scientific notation into a …

type-conversion integer python-2.x scientific-notation
How to parse into base64 string the binary image from response?

I want to parse the requested image from my REST API into base64 string. Firstly... I thought, it would be …

javascript image base64 binaryfiles type-conversion
Type conversion - unsigned to signed int/char

I tried the to execute the below program: #include <stdio.h> int main() { signed char a = -5; unsigned …

c types type-conversion integer-promotion signedness