Top "Int" questions

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

Convert nvarchar to int in order to join SQL tables in a view

I want to create a view which will display the info from two tables joined by different type fields. The …

sql int inner-join nvarchar sql-view
Cast int to pointer - why cast to long first? (as in p = (void*) 42; )

In the GLib documentation, there is a chapter on type conversion macros. In the discussion on converting an int to …

c pointers casting int long-integer
How to retain leading zeros of int variables?

Below is a section of code which is part of a functional decryption and encryption program. while checkvar < maxvar: # …

python variables int zero
How to use long id in Rails applications?

How can I change the (default) type for ActiveRecord's IDs? int is not long enough, I would prefer long. I …

ruby-on-rails activerecord int long-integer bigint
php: int() function equivalent for bigint type? (int() cuts strings to 2147483647)

php: What's the equivalent int() function for bigint type? (int() cuts big numbers to 2147483647)? Example: $bigint1="12312342306A_C243"; $bigint1=(int)$…

php function integer int biginteger
How to toggle an int / _Bool in C

Suppose we have an int and want to toggle it between 0 and 1 in a boolean fashion. I thought of the …

c boolean int toggle
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
Can I use the not operator in C++ on int values?

Strange question, but someone showed me this, I was wondering can you use the not ! operator for int in C++? (…

c++ int logical-operators negation
Objective c: Check if integer/int/number

In objective c, how can i check if a string/NSNumber is an integer or int

objective-c variables nsstring int nsnumber
What is the largest data type for storing (and printing) an integer?

In C on a 32-bit system, which data type will store (and can therefore print) the largest integer? Is it …

c types int long-integer primitive-types