Questions tagged [long-integer]

A long integer is an integer number, typically twice the size of a standard integer. It is represented by the keyword 'long' in several programming languages.

A long integer is an integer number, typically twice the size of a standard integer. It is represented by the keyword 'long' in several programming languages.

http://en.wikipedia.org/wiki/Integer_(computer_science)#Long_integer

2408 questions
0
votes
0 answers

My C program stops when iteration variable reaches 2100 why?

I have written a simple C code like this: #include int main() { long iteration = 0; while(1) { iteration += 10; if(iteration % 100000000 == 0) { printf("Iteration %ld\n",…
abc def
  • 19
  • 4
0
votes
3 answers

The output is not getting convert into into long data type

The problem is from : https://www.hackerrank.com/challenges/mini-max-sum/problem Problem Description : Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print…
Anurag
  • 95
  • 4
  • 17
0
votes
1 answer

Separate a column into multiple variables and making the df long

I am getting a little bit puzzled on reshaping my dataframe in R. Let's say I have a dataframe like this: SVI SDI CVI CDE 12 10 5 3 11 9 4 2 So every column represents a set of sub-variables which I…
0
votes
0 answers

How to send time stamp in byte stream?

How do I send an object of type struct tm via byte socket to a server? I know how to send the single bytes of int64_t and others, but afaik time_t depends on the OS where the program is used. Is there any C++ internal function that can return a…
F_Schmidt
  • 902
  • 1
  • 11
  • 32
0
votes
1 answer

How do you get the type of a primitive literal in Java?

I just learned about using "L" after long values to signify that they're long types, just like when you use "f" after float types. I was wondering what happens when you write; long value = 3; instead of long value = 3L; So I was wondering; Does…
Bernard Borg
  • 1,225
  • 1
  • 5
  • 18
0
votes
1 answer

Why can't a long integer be converted to an integer when inside a Python list?

I have seen many posts here, which gives ways of removing the trailing L from a list of python long integers. The most proposed way is print map(int,list) However this seems not to work always. Example--- A=[4198400644L, 3764083286L, 2895448686L,…
Manas Dogra
  • 317
  • 1
  • 15
0
votes
2 answers

I keep getting one type of error persistently: "The type of the expression must be an array type but it resolved to long"

I keep getting this error whenever I refer to the long array 'a' (i.e on line 21, 22, 28, 36, 38, 46, 49, 60). I am a beginner in Java and really don't understand the error message. Even typecasting the array does not work. Error: The type of the…
Mr Duda
  • 1
  • 1
0
votes
2 answers

How to deserialize single property response to C# Object?

I am testing APIs and currently, I am testing a Post method that returns a Long data type Id. I have created a C# object class, where I also have other properties that it will return from another API call. For now, this Post call only returns an Id…
KevinDavis965
  • 39
  • 1
  • 8
0
votes
1 answer

Oracle | Update Long type | Error: Illegal use of LONG datatype

How to rectify issue on UPDATE? Following is related data and error Error starting at line : 1 in command - UPDATE JOB_STATUS SET STATUS ='FAILED' ,ENDDATE=sysdate, REMARKS = 'Error' WHERE ID = 30 Error at Command Line : 3 Column : 7 Error report…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
0
votes
1 answer

Question of maximum pairwise product in python3 and when taking long input such as 100000 and 90000 and it returns 0

I would like to take a long input and print the maximum pairwise product between them but i'm getting 0 as my output. e.g. would like to take 10^5 and 9^4 as my input and print maximum pairwise product 9^9 but i'm getting 0 as my answer. So how to…
0
votes
0 answers

My Integer Overflow how to carry more digites

How to carry this number 119622220865480194561963161495657715064383733760000000000 in a variable?
Mahmoud
  • 1
  • 1
0
votes
1 answer

Long to wide based on different columns in R

I have the following long data that I want to transform to wide data based on a different column id_1<-c(1,2,3,4,4,4,4,5,5,5,5,5,6) h06b<-c(1,1,1,1,2,3,4,1,2,3,4,5,1) h07<-c(1,2,3,4,5,6,7,8,9,10,11,12,13) df1<-data.frame(id_1,h06b,h07) i want to…
Sam Mwenda
  • 150
  • 8
0
votes
1 answer
0
votes
0 answers

Is there a GCC command line option that enables issuing a warning/error even when explicitly casting a 64-bit long to a 32-bit int?

I'm porting our C++ application from ARM32 Linux to ARM64 Linux. I'm not sure if there is code snippets in our application such as int i; long l; ... i = (int)l; i = static_cast(l); which doesn't (normally) have any problems on a 32-bit…
xiaokaoy
  • 1,608
  • 3
  • 15
  • 27
0
votes
2 answers

How is an int function able to return long long variable?

int reverse(int x) { if(x==0) return 0; int y = abs(x); long long result = 0; while(y > 0) { result *= 10; result += y % 10; y /= 10; } if(result >…
Karan
  • 43
  • 9