Top "Long-integer" questions

A long integer is an integer number, typically twice the size of a standard integer.

Average of 3 long integers

I have 3 very large signed integers. long x = long.MaxValue; long y = long.MaxValue - 1; long z = long.MaxValue - 2; …

c# .net long-integer
C# Byte[] to long reverse not working

Why is this program not working? I convert a byte array to long. Then from the long I convert back …

c# bytearray long-integer bitconverter
Is "long x = 1/2" equal to 1 or 0, and why?

if I have something like: long x = 1/2; shouldn't this be rounded up to 1? When I print it on the screen …

java c long-integer integer-division
Why "long int" has same size as "int"? Does this modifier works at all?

Ehm.. I kind' of though this modifiers like long / short expands / reduces amount of memory allocated when variable are created, …

c++ c types long-integer abi
Java: Is there a difference between L and l (lowercase L) when specifying a long?

When I specify a number to be a long with a constant value 400, is there any difference between using 400L …

java types wrapper long-integer
generate random long user ID

I am writing an android app giving each client a long user ID through this formula: long userID = (long) (Math.…

java random statistics long-integer stochastic
Wrong result by Java Math.pow

If you try to run the following code public class Main { public static void main(String[] args) { long a = (long)…

java math long-integer pow
Primary Key Type: int vs long

I know some software shops have been burned by using the int type for the primary key of a persistent …

java persistence int primary-key long-integer
Using the letter L in long variable declaration

long l2 = 32; When I use the above statement, I don't get an error (I did not used l at the …

java long-integer variable-declaration
Are there uint64 literals in Go?

I'm looking at the numeric types in Go. I want to use uint64 literals. Is this possible in Go? Here's …

go long-integer literals unsigned uint64