2,448 questions
0 votes
1 answer
31 views
AWS Amplify Long type to Int64 with Swift and GraphQL
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: ...
0 votes
1 answer
130 views
Android: Filter CardViews in RecyclerView List with Room DAO
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 ...
4 votes
2 answers
263 views
How to avoid use of long in C++?
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 ...
1 vote
1 answer
87 views
Memory allocation error when adding a long number to a dynamically updated array
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 ...
0 votes
0 answers
14 views
jQuery's native slider does not actually slide while using mobile phone [duplicate]
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] + " - $...
0 votes
1 answer
52 views
In .NET will a `decimal` equal to an `int` always cast to that `int`
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 ...
0 votes
1 answer
166 views
Why cant my long int handle the number 2971215073 in C?
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 || ...
1 vote
1 answer
125 views
Bug in the normalization step of Knuth Algorithm D (TAOCP 4.3.1)?
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 ...
0 votes
0 answers
111 views
Elasticsearch rounds long number
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 ...
1 vote
0 answers
31 views
how to share hash() function output with multiprocessing.Array in python 3?
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 ...
1 vote
2 answers
80 views
In a long table for a longitudinal study, how to loop efficiently across a large number of individuals?
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 ...
-2 votes
1 answer
74 views
To print big integers using expressions why we need to declare initial variable as long too [duplicate]
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 ...
0 votes
1 answer
53 views
Why aren't large numbers working for this Ackerman Subarray Solution?
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 ...
0 votes
1 answer
129 views
How to convert Long datatype to Hex format in XSLT and Perform Long Parsing in XSLT. XSLT to be used in DataPower
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 ...
0 votes
1 answer
143 views
How to split large integers without converting to a string? [duplicate]
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 ...