Top "Int" questions

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

How to convert an int value to string in Go?

i := 123 s := string(i) s is 'E', but what I want is "123" Please tell me how can I get "123". And …

string go int converters
How to elegantly check if a number is within a range?

How can I do this elegantly with C# and .NET 3.5/4? For example, a number can be between 1 and 100. I know …

c# numbers int
Convert char to int in C#

I have a char in c#: char foo = '2'; Now I want to get the 2 into an int. I …

c# char int
Python float to int conversion

Basically, I'm converting a float to an int, but I don't always have the expected value. Here's the code I'm …

python floating-point int
Convert hex string (char []) to int?

I have a char[] that contains a value such as "0x1800785" but the function I want to give the value …

c char int
Java Round up Any Number

I can't seem to find the answer I'm looking for regarding a simple question: how do I round up any …

java math int rounding
Converting a column within pandas dataframe from int to string

I have a dataframe in pandas with mixed int and str data columns. I want to concatenate first the columns …

python string pandas dataframe int
Integer to hex string in C++

How do I convert an integer to a hex string in C++? I can find some ways to do it, …

c++ decimal hex int
Converting an int to a binary string representation in Java?

What would be the best way (ideally, simplest) to convert an int to a binary string representation in Java? For …

java string binary int