Top "Int" questions

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

Integer value comparison

I'm a newbie Java coder and I just read a variable of an integer class can be described three different …

java integer int equals autoboxing
%i or %d to print integer in C using printf()?

I am just learning C and I have a little knowledge of Objective-C due to dabbling in iOS development, however, …

c console integer int printf
What's the best way to check if a String represents an integer in Java?

I normally use the following idiom to check if a String can be converted to an integer. public boolean isInteger( …

java string int
How to Convert Int to Unsigned Byte and Back

I need to convert a number into an unsigned byte. The number is always less than or equal to 255, and …

java byte int
How can I convert a char to int in Java?

(I'm new at Java programming) I have for example: char x = '9'; and I need to get the number …

java char type-conversion int
How to convert string to integer in C#

How do I convert a string to an integer in C#?

c# .net string int type-conversion
Converting a double to an int in C#

In our code we have a double that we need to convert to an int. double score = 8.6; int i1 = Convert.…

c# int double
Python sum() function with list parameter

I am required to use the sum() function in order to sum the values in a list. Please note that …

python list int sum typeerror
Best way to get whole number part of a Decimal number

What is the best way to return the whole number part of a decimal (in c#)? (This has to work …

c# .net decimal int
C char* to int conversion

How would I go about converting a two-digit number (type char*) to an int?

c char int