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.

**0**

votes

**2**answers

35 views

### taking input of large no in c

Our initial numbers are 1,2 ,3 ,4 , and 5 . We can calculate the following sums using four of the five integers:If we sum everything except 1 , our sum is . 2+3+4+5;and same as restAs you can ...

**3**

votes

**1**answer

47 views

### Different results in Python v 3.5.2 and v 2.7.12, but the v 2.7.12 is correct?

Let me preface my question by saying I know that around Python 3, the "limitless long" was integrated into the int so effectively ints in Python can be as large as your RAM.I'm comparing Java and ...

**-1**

votes

**1**answer

47 views

### python long integer error [on hold]

I am trying to execute a knapsack problem in python and believe I have entered my code in correctly. However, when I run it I get an error message sequence (long long) expected. I am not sure how to ...

**0**

votes

**0**answers

25 views

### C++ Convert 32bit bitset to a signed long [duplicate]

I have a 32bit bitset like thisbitset<32> x("11111111000000000000000011110000");and I want to convert it to a two's complement signed integer/long. The signed integer should be negative in ...

**0**

votes

**0**answers

20 views

### Why do arithmetic operations on long long int take more time than for an int?

Why do operations like addition,division,subtraction,multiplication,modulo take more time on long long int(64 bit) type than for a an int type on a machine with a 32 bit word size?

**0**

votes

**1**answer

15 views

### Android Timestamp overflow

public static final long ONE_MONTH_INTERVAL=1000 * 60 * 60 * 24 * 30;public static final long THREE_MONTHS_INTERVAL=1000 * 60 * 60 * 24 * 90;These 2 lines give me this warning : Numeric ...

**0**

votes

**0**answers

11 views

### How can I make a short condition in pine script for tradingview

I've coded till longCondition and it is working fine. For short I need a condition where it sells crypto 1% above buying rates. I'm unable to code that. How can I do that?//@version=3strategy("...

**0**

votes

**2**answers

44 views

### Python does not convert long to int

I have a list by connection of two strings and then converting them to integer by:for i in xrange(0, len(FromBus[1][0])):FromBus[1][0][i]=int(str(FromBus[1][0][i]) + str(ToBus[1][0][i]))...

**4**

votes

**1**answer

32 views

### C# date types convertion same as c++

How do I convert ulong to long with same result as I get in c++.C++unsigned long ul=3633091313;long l=(long)ul;l is -661875983C#ulong ul=3633091313;long l=(long)ul;l is 3633091313

**0**

votes

**0**answers

18 views

### How divide two Long values in Ireport 3.0.0 with java

I have this:$F{quartoAptoQtdDiarias}.equals(0) || $F{quartoAptoTotPaciente}.equals(0) ?0 : new Long($F{quartoAptoQtdDiarias}.divide($F{quartoAptoTotPaciente})) How validate long is 0 or ...

**0**

votes

**6**answers

89 views

### Long Long Decimal Binary Representation using C

I've been trying to print out the Binary representation of a long long integer using C ProgrammingMy code is #include<stdio.h>#include <stdlib.h>#include<limits.h>int main(){...

**0**

votes

**2**answers

28 views

### Create a method for a long click or pressed Button in javafx

In my program I need to make an action when a button is long pressed/click. So I decided to create a method which gets the button in its parameters and return a boolean when the button click is longer ...

**-4**

votes

**0**answers

53 views

### Converting / splitting a string to 4 integers in C

I'd like to convert the following string (input) to an array with 4 longs/integers.I managed to do it in Python, so here is an example of how it should look like in the end:in: "...

**-1**

votes

**2**answers

31 views

### Can I store a big hexadecimal value in Long datatype in Java? [duplicate]

Mac address is 6 bytes long(12 digit or 48bits in length).Long can hold 8 bytes of data but still I am not able to store following mac addresss in a long data variable?Long mac=(long) ...

**0**

votes

**2**answers

63 views

### why power function giving negative value?

Currently I am implementing RSA algorithm. Following function is for power which we need in RSA.private long power2(long x, long y, long n){long temp=1;while (y > 0){...