Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

I have issue where I cannot map Long type in Swift. E.g. schema.graphql scalar Long input TableLongFilterInput { between: [Long] contains: Long eq: Long ge: Long gt: Long le: Long lt: ...
EnergyKickman's user avatar
0 votes
1 answer
131 views

I have a RecylcerView List of CardViews. Each CardView holds user data that is saved in a Room database. Some of the CardViews have due dates that have been entered by the user with a TimePicker. I ...
AJW's user avatar
  • 1,587
4 votes
2 answers
267 views

I work on a very large C++11 codebase, and we want to prevent future developers from declaring variables as long, since using long causes some issues when compiling on Windows compared to Linux. Our ...
Nicolas's user avatar
  • 51
1 vote
1 answer
90 views

I am trying to make a function which gathers the factors of long numbers. However I repeatedly get a free() error, munmap_chunk() error or Assertion `(old_top == initial_top (av) && old_size ...
Damon Crowley's user avatar
0 votes
0 answers
14 views

First off, here's my code: $("#slider-range").slider({ range: true, min: 0, max: 500, values: [75, 300], slide: function(event, ui) { $("#amount").val("$" + ui.values[0] + " - $...
user7182273's user avatar
0 votes
1 answer
54 views

In .NET, assuming that a decimal is not so large that it cannot be represented (or cause an overflow), will a decimal that is equal to an int always cast to the int that it is equal to ? Same question ...
H2ONaCl's user avatar
  • 11.5k
0 votes
1 answer
167 views

So I have the following code: #include <stdio.h> unsigned long int fibonacci() { static int count = -1; static int f1 = 0; static int f2 = 1; count++; if(count == 0 || ...
Nebelmonster's user avatar
1 vote
1 answer
128 views

Knuth Algorithm D, during the normalization step (D1), states to set d to (b-1)//v_hi where b is the basis (word size or half-word size) and v_hi is the upper limb of the denominator. Then multiply ...
Duncan Townsend's user avatar
0 votes
0 answers
113 views

I have an index in opensearch (elasticsearch) with a number field defined as long. Java LONG type has max value = 2^63, but when I try to write a number 2^53 + 1 to the index, it will write the ...
Руслан Гильмутдинов's user avatar
1 vote
0 answers
31 views

I need to share some 64-bit integers in a python 3 multiprocessing runtime. I tried to use multiprocessing.Array, and it works on linux, but fails on Windows. The long type for multiprocessing.Array ...
H.Sheng's user avatar
  • 481
1 vote
2 answers
80 views

I work on sexually transmitted diseases, such as gonorrhoea, and their possible consequences, such as ectopic pregnancy in women. I have a first dataset (df_gono) that contains whether and how many ...
Fabrice Helfenstein's user avatar
-2 votes
1 answer
74 views

so basically I had a code where I wanted to get the cube of the given integer the input can be as big as 10^6 so when i used long long int and size_t and they did not work until I changed the data ...
Aditya Raj's user avatar
0 votes
1 answer
53 views

You are given two inputs for this program; <the_number> <checking_number> For every sub-"array" you have, you need to sum up the digits of that sub-"array" and check if ...
mxchi16's user avatar
0 votes
1 answer
130 views

Below is my .Net VB code. How do we implement below code in XSLT (XSLT to be used in DataPower). Since we do not have Long datatype in XSLT, we're having tough time to implement below .Net code in ...
Ram Adabala's user avatar
0 votes
1 answer
146 views

I ran into a problem when trying to convert a 5,000 digit long integer into a string. I realised that I did not need an integer in that case, but I would still like to know if there is a way to ...
Qmrl's user avatar
  • 9
-1 votes
0 answers
37 views

I am writing a Java program that performs bitwise operations on bites in a data stream. I have been given test values in the form of 8-digit hexadecimal strings, which I have converted to base 10 and ...
T. J. Foster's user avatar
1 vote
0 answers
95 views

I am looking for a way to reliably calculate large binomial coefficients in c++. My current implementation can handle numbers up to around n=60, but after that f * (n - i) exceeds the limit of long ...
Alice Schwarze's user avatar
0 votes
1 answer
40 views

I have a long table format and try to construct a wide format that contains additional variables based on the rows. My data has rows based on patients, their treatments, and their visits. Each row ...
joejoe9's user avatar
  • 107
1 vote
1 answer
92 views

<script> function hs(e, n) { return e * n % e; } alert(hs(1752865668, 1716717484170)); //result: 1752622684 </script> <?php function hs($e, $n) { return $e * $n % $e; } echo ...
Alo's user avatar
  • 1,395
-1 votes
1 answer
182 views

I've been trying the cs50 credit problem and i am stuck in the part where you add every other digit in the number. This is what i came up with. #include <iostream> using namespace std; int main(...
Overpaint's user avatar
0 votes
1 answer
127 views

In the comment discussion of an old unanswered question, a fellow user is claiming that the C long int type "accesses memory in big endian mode". I apologize beforehand for my lack of ...
mindoverflow's user avatar
1 vote
1 answer
164 views

I have a simple C++ program that multiplies two long int variables and prints the result. Here's the code: #include <iostream> using namespace std; int main() { long int a = 100000; ...
m7real's user avatar
  • 13
4 votes
1 answer
319 views

I am a sort of newbie to programming (actually coming back to it after a gap of 20 yrs :) ). I am trying to make a program for a question on project euler, to find sum of all prime numbers under 2 ...
Vinayak Deshmukh's user avatar
2 votes
2 answers
245 views

I want to query data from an oracle db with unixodbc which has an NUMBER(19) column. So this must fit in an long under 64 bit. But i dont know the right type for the TargetType parameter. With type ...
Marco's user avatar
  • 151
1 vote
1 answer
39 views

I want to know that why there is no error in this code when I run it, especially in this line ret[(int) b[i]] = p;. Actually this solution I found in leetcode contest 387, user who got rank 3. public ...
Md Sajid Anwar's user avatar
0 votes
1 answer
133 views

How can I create a set data structure which compresses a sorted array of longs? Goal: Must support the following operations: insertion of new numbers deletion of a certain value intersection with ...
namdosan's user avatar
0 votes
0 answers
100 views

I am receiving double value [18-19 digits] as input to my method and I have to convert it to long value. I have no interest in handling the decimal part of input as input will always be ending with .0 ...
Keshav Singh's user avatar
2 votes
2 answers
257 views

I am so new in C and so far I didn't comprehend how to prevent from integer overflow, I read many articles but still I am not 100% sure! in this case int ft_sqrt(int nb) { long int sqrt; ...
Negar Nasiri's user avatar
0 votes
1 answer
240 views

What is the best way to compress a (sorted) monotically increasing sequence of longs? Characteristics about the sequence: all the values are unique (no repeated) length of sequence can range from ...
namdosan's user avatar
1 vote
0 answers
281 views

I have my own long arithmetic set of functions. And I don't know why this error happens because I have only one function which is change the value of __INTINF var and when I increase the value I call ...
Nemo Streams's user avatar
1 vote
1 answer
155 views

I'm currently working on implementing the Luhn algorithm in C for checksum calculation. However, I encountered an issue with my C code where it consistently produces incorrect output (giving 11 ...
Ahmed Seddik Bouchiba's user avatar
0 votes
0 answers
67 views

Here is the data frame that I started with. I tried to change it from wide to long using this code: #change data frame from wide to long us_population_v3 <- pivot_longer(us_population_v2, cols = !...
Taylor Wilson's user avatar
2 votes
2 answers
129 views

I am studying for an exam that involves C. but I am encountering an error on the variables even when casting them. The code is copied from the powerpoint the professor gave us. I was going through the ...
ketch's user avatar
  • 25
0 votes
3 answers
75 views

Every time I try to convert it, it only shows the conversion from in. to mm.(aka the 1st expression)I would really appreciate it if you can help because I spent a long time. a = input('Original Amount:...
Drywallofcode's user avatar
1 vote
3 answers
144 views

#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if (a == b) printf("equal"); } so I input the number with 001 and 1, but ...
Fernando Gunawan's user avatar
-3 votes
2 answers
177 views

I can't tell if anyone had asked this question before. The root behind this question is the mistake (in my opinion) in standard C or C++ in that the implicit word width of an integer product after ...
robert bristow-johnson's user avatar
1 vote
2 answers
114 views

Can anyone explain to me why is util2=49, but util1=5? Program: #include <stdio.h> int main() { int load1 = 47759534; int capacity1 = 96000000; long load2 = 47759534; int capacity2 = 96000000; ...
Toaster_Pizza's user avatar
1 vote
1 answer
83 views

I am using the below code to get a long int sum of 2 numbers. I take the inputs as long ints and expecting a long int answer through printf but am getting the result as a negative number. #include <...
Vazhun's user avatar
  • 37
-2 votes
2 answers
189 views

I am writing a C++ function which takes a positive number and returns an array containing its digits reversed. #include <cmath> #include <vector> std::vector<int> digitize(unsigned ...
Ulet Natalius's user avatar
0 votes
3 answers
164 views

I have a Java programt o display the limits of primitive integer datatypes which is as follows: import static java.lang.Math.*; class HelloWorld { public static void main(String[] args) { ...
vidyapu sandeep's user avatar
1 vote
2 answers
287 views

I have written a small C# console application to generate a million random longs I have already included ThreadLocal to avoid creating duplicates here if the code I am running: var random = new ...
JKennedy's user avatar
  • 18.9k
0 votes
0 answers
45 views

can you divide two long datatypes and turn them into a fraction? If not, would you have to type convert the datatypes into floats? Can someone explain how long arithmetic works in C. This is a snippet ...
user22712878's user avatar
1 vote
1 answer
656 views

Running Windows 64 bit system. Values appear as if they are just int. int main() { long long_min = LONG_MIN; long long_max = LONG_MAX; printf("Minimum value of long: %ld \n", ...
WiiWi's user avatar
  • 21
0 votes
1 answer
52 views

<div class="mb-3 col-md-6"> <label asp-for="@Model.MERSISNumber" class="form-label">MERSIS Numarası</label> <input class="form-control&...
Dilara PINAR's user avatar
8 votes
5 answers
3k views

I have a list that contains very large integers and I want to cast it into a pandas column with a specific dtype. As an example, if the list contains 2**31, which is outside the limit of int32 dtype, ...
cottontail's user avatar
  • 25.7k
0 votes
0 answers
42 views

I'm trying to sort an array in java using the inbuilt comparator and sort method but it is giving me an error incompatible type, object cannot be converted to int I want to sort an array and also want ...
user20837016's user avatar
-4 votes
2 answers
140 views

I was trying to find product of some long long integer (0<=a[i]<=10^18)t. now how do i find that the product exeeds 10^18? does the product turn into negetive number (product<0)? #include<...
Humanware's user avatar
-1 votes
2 answers
109 views

For some reason I cannot get the number 4294967296, or any bigger to be stored in a long. On the second run through the loop the change variable goes to 0 after being multiplied despite being a long. ...
John Serlin's user avatar
1 vote
0 answers
218 views

When we are trying to insert small integer values let's say 45 to documentDB. It's been saved as just an integer/Number value in documentDB. But I want that to be saved as NumberLong irrespective of ...
Rahman Shaik's user avatar
1 vote
0 answers
275 views

I'm creating a serialisation format, and part of the header is the length of the body. To do this, I'm allocating a fixed number of bytes (currently 4) which I want to use to store as long a number as ...
Ian Newson's user avatar
  • 7,967

1
2 3 4 5
49