Top "Integer" questions

Common datatype in many programming languages for representing a whole number.

How to display hexadecimal numbers in C?

I have a list of numbers as below: 0, 16, 32, 48 ... I need to output those numbers in hexadecimal as: 0000,0010,0020,0030,0040 ... I have tried …

c format integer printf hex
Convert integer into byte array (Java)

what's a fast way to convert an Integer into a Byte Array? e.g. 0xAABBCCDD => {AA, BB, CC, DD}

java arrays integer byte
Convert integer to hex and hex to integer

So I have this query working (where signal_data is a column) in Sybase but it doesn't work in Microsoft …

sql sql-server integer hex
How to convert a boolean array to an int array

I use Scilab, and want to convert an array of booleans into an array of integers: >>> x = …

python integer boolean type-conversion scilab
How do you express binary literals in Python?

How do you express an integer as a binary number with Python literals? I was easily able to find the …

python syntax binary integer literals
how to convert array values from string to int?

$string = "1,2,3" $ids = explode(',', $string); var_dump($ids); returns array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" } I need for …

php arrays string integer explode
What is the difference between an int and an Integer in Java and C#?

I was reading More Joel on Software when I came across Joel Spolsky saying something about a particular type of …

c# java integer int
Efficient way to determine number of digits in an integer

What is a very efficient way of determining how many digits there are in an integer in C++?

c++ integer digits
Convert a string to integer with decimal in Python

I have a string in the format: 'nn.nnnnn' in Python, and I'd like to convert it to an integer. …

python string integer decimal
C++ floating point to integer type conversions

What are the different techniques used to convert float type of data to integer in C++? #include <iostream> …

c++ floating-point integer type-conversion typecast-operator