Top "Integer" questions

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

How to get the Power of some Integer in Swift language?

I'm learning swift recently, but I have a basic problem that can't find an answer I want to get something …

integer double swift pow
Parse v. TryParse

What is the difference between Parse() and TryParse()? int number = int.Parse(textBoxNumber.Text); // The Try-Parse Method int.TryParse(textBoxNumber.…

c# parsing integer tryparse
Difference between long and int data types

Considering that the following statements return 4, what is the difference between the int and long types in C++? sizeof(int) …

c++ types integer size
Mapping two integers to one, in a unique and deterministic way

Imagine two positive integers A and B. I want to combine these two into a single integer C. There can …

algorithm mapping integer deterministic math
Python: create dictionary using dict() with integer keys?

In Python, I see people creating dictionaries like this: d = dict( one = 1, two = 2, three = 3 ) What if my keys are integers? …

python dictionary integer key
What's the most efficient way to test two integer ranges for overlap?

Given two inclusive integer ranges [x1:x2] and [y1:y2], where x1 ≤ x2 and y1 ≤ y2, what is the most …

performance comparison integer range
How can I pass an Integer class correctly by reference?

I am hoping that someone can clarify what is happening here for me. I dug around in the integer class …

java integer pass-by-reference
What's the right way to represent phone numbers?

I'm having trouble representing a mobile number in one of my applications. I was wondering if there is an Integer …

java integer phone-number
Extract Integer Part in String

What is the best way to extract the integer part of a string like Hello123 How do you get the 123 …

java string parsing integer java.util.scanner
Reading and printing an integer in mips

My program is suppose to read an integer and print it back to the user but every time it just …

integer mips mars-simulator spim