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
1 answer

Is there an R function for pivoting multiple columns to the same row?

I recently ran an experiment that asked each participant to fill out a scale for each of the stimuli presented my data now looks something like this: Participant Stim1_1 Stim1_2 Stim1_3 Stim2_1 Stim2_2 Stim2_3 Stim3_1 Stim3_2 Stim3_3 A B With…
Emily
  • 15
  • 2
0
votes
1 answer

Nullable primitive long function parameter, can you check if the passed value is indeed null?

Functional is declared as: Object functionName(@Nullable long inputPar) @Nullable annotation accepts null as input parameter on the function call. Could I, inside the function, write a condition asking if the inputPar is null? if(inputPar == null)…
0
votes
2 answers

debug problem in the checking, old wizards cult riddle

I'm trying to solve this riddle in java, about an old man who lives because his cult who gives the old man some of their life, this specific code should work to the rules which are given but one of the checks in the testing is an error. public class…
Gil Caplan
  • 64
  • 8
0
votes
2 answers

unix time OR long time to date time - And - date time to unix time OR long time PHP

How to change unix time OR long time to date time and date time to unix time OR long time. in PHP and html
0
votes
3 answers

Get size of char buffer for sprintf handling longs C

I am quite new to C and occurred a question, when dealing with long ints/char* in C. I want to store a long in a char*, but I am not sure, how I should manage the size of my buffer to fit any long given. Thats what I want: char buffer[LONG_SIZE]; //…
0
votes
2 answers

Is it possible to turn java.util.Date() to int?

I am developing an application where I have a JFormattedTextField with the current date in yyyy/mm/dd format and I want to move to int only these values. But the problem and what the eu am doing is returning more values JFormattedTextField textId =…
0
votes
2 answers

Position of a digit in an integer or long data type in C

What is the easiest way to find the position of a digit inside an integer or long number in C language like 4325262464908 for instance?
0
votes
2 answers

arithmetic of long int in c

I have the following source compiled in Linux 3.10.0-957.5.1.el7.x86_64,g++ version 4.8.5 Case1: printf("INT_MAX=(%d) , INT_MIN=(%d) \n",INT_MAX,INT_MIN); int ix= 500 ; long int lx1=0,lx2=0; lx1=2147483647 + 10 ; lx2=2100000000 ; if( ix < (lx1-lx2)…
barfatchen
  • 1,630
  • 2
  • 24
  • 48
0
votes
1 answer

Store Large value in Oracle Database from C#

I want to store 20 numbers(eg.12345678901234567890) in oracle database. I've used NUMBER data type in oracle database and when I pass long data type from the C# end it's getting error, Error is : Value was either too large or too small for an…
TechGuy
  • 4,298
  • 15
  • 56
  • 87
0
votes
2 answers

Convert java function with long variable to NodeJS

In Java function have "long" variable. public class LongToIntExample1{ public static void main(String args[]){ long l=2672558412L; int i=(int)l; System.out.println(i); } } => Output: -1622408884 I tried…
Dang Thach Hai
  • 347
  • 3
  • 10
0
votes
0 answers

why is long double integer limit 1288 digits long?

So i read that long double is 128bit But look at this code long double MaxLatticePaths(int xSize, int ySize) { long double sumMLP = 1; long double halfling = xSize; long double halfling2 = (xSize + ySize) - xSize; for (int i = xSize…
0
votes
0 answers

Fastest way to convert an byte[8] to long

I want to convert an array of 8 bytes (new byte[8]) to a long. I've found many solutions but which one is the fastest? I'm not sure how I can benchmark these solutions. Here are a couple of solutions that look good to…
Elie G.
  • 1,514
  • 1
  • 22
  • 38
0
votes
1 answer

What is Maximum Decimal Value using RS Logix 500 for a Long Integer Data File?

Using RS Logix 500, what is the maximum decimal value for a Long Integer Data File? I know the 32nd bit determines a negative or positive value.
PaulMc
  • 109
  • 11
0
votes
1 answer

Weird behavior of -1U and -1UL

I'm currently creating a unit test for a method. The convert method this is supposed to test basically consists of return if value > 0 so I had the idea to check unsigned overflows as well. While creating test cases for the test I stumbled upon this…
IDarkCoder
  • 709
  • 7
  • 18
0
votes
1 answer

Segmentation fault for numbers too big for Ackermann's function

Why is this failing? I have written Ackermann's function in C and used longs to make sure that no number will be too small. Yet, when I go above (including) 4 for m and n, it gives me a segmentation fault: 11. Does anyone know why? #include…