Questions tagged [int64]

The int is a datatype that represents an integer and is coded on 64 bits in memory.

int64 is a datatype that represents an (a whole number, not a fraction) and is coded on 64 bits in memory. Unlike its counterpart which is , int64 can be used to store positive and negative integers of values between -263 to 263 - 1.

260 questions
2
votes
1 answer

Dealing with large integers in R

I have an integer 18495608239531729, it is causing me some trouble with data.table package in a sense, that when i read data from csv file which stores numbers this big, it stores them as integer64 Now i would like to filter my data.table like…
ira
  • 2,542
  • 2
  • 22
  • 36
2
votes
0 answers

When is it appropriate to use std::int_fast64_t to its explicit std::int64_t counterpart?

I've been searching for examples via Google searches and here on StackOverflow, and I still haven't found anything conclusive to satisfy my understanding. I've seen posts about the differences between the types and what they are, but nothing…
Francis Cugler
  • 7,788
  • 2
  • 28
  • 59
2
votes
2 answers

How to parse the division of two very large numbers into a double?

I have a geometric algorithm which takes as input a polygon. However, the files I am supposed to use as input files store the coordinates of the polygons in a rather peculiar way. Each file consists of one line, a counterclockwise sequence of the…
Simon H
  • 374
  • 2
  • 14
2
votes
2 answers

How to set the lower or higher Value of a int64?

I know i can get the higher Value of a int 64 with: int32 higher = (int32)(iGUID >> 32); But how can i set it? I tried it with this, but it says "expression must be a modifiable value": iGUID << 32 = inewlGUID; I need to keep the other Value, ( if…
Sapd
  • 27
  • 4
2
votes
1 answer

Int64 changes value when passed into a function with SimpleJSON

I'm getting User IDs (int64) from JSON and then passing them into a function to populate user data. However the JSON ID value I get changes once I pass it through a iEnumerator function. Any idea why this happens? I have printed the values and know…
Blair
  • 43
  • 1
  • 4
2
votes
1 answer

Need a Work-around for OneHotEncoder Issue in SKLearn Preprocessing

So, it seems that OneHotEncoder won't work with the np.int64 datatype (only np.int32)! Here's a sample of code: import numpy as np import pandas as pd from sklearn.preprocessing import OneHotEncoder a =…
2
votes
1 answer

ReadProcessMemory with __int64 address

Hey guys I want to get some memory from a process that I already know with CheatEngine. I defined a region that I want to scan (0x190D186FF->0x190D1870A) but the address is too big to be stored in a simple int. That's why I use an __int64 but with…
Zenny H.
  • 21
  • 2
2
votes
2 answers

Bit field larger than 64 shifts in Swift?

How would I construct an OptionSetType with a raw value greater than 64 bit shifts (i.e. Int64) that is still able to be encoded using NSCoder? I have more than 64 potential bitwise options to combine.
rolling_codes
  • 15,174
  • 22
  • 76
  • 112
2
votes
3 answers

Most efficient way to compare two __int64 numbers and get -1,0,1

I have been struggling with a very simple problem... I am working with a 4 dimensional cube using AVL trees... now the problem is a performance related one... basically I have to compare billions of 64 bit numbers... (because my key is 64bit…
MarineHero
  • 143
  • 2
  • 5
2
votes
2 answers

Comparing int64_t and uint64_t

Does anybody know why this code produces such an output? -1 >= 0!!! [mahmood@tiger ~]$ cat t.cpp #include #include int main() { uint64_t i = 10; uint64_t j = 10; int64_t k = -1; std::cout << "k=" << k << " i-j=" <<…
mahmood
  • 23,197
  • 49
  • 147
  • 242
2
votes
1 answer

Convert byte array to signed int64 in javascript

I know that there is no int64 data type in js. But i need to convert a byte array into a signed int64 to get same result comparing to BitConverter.ToInt64() method in .NET class library. There is an implementations of big integers in javascript…
epsi1on
  • 561
  • 5
  • 16
2
votes
1 answer

How does bit64 store long long int in a double

When storing a whole number as a double, loss of precision stars occurring after 2^53: > print(2^53, digits=20) [1] 9007199254740992 > print(2^53+1, digits=20) [1] 9007199254740992 The bit64 package in R can store integers up to 2^63: >…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
2
votes
2 answers

Matlab nchoosek got difference answer using int64 and sym

This is a question about the function nchoosek in Matlab. I want to find nchoosek(54,25), which is the same as 54C25. Since the answer is about 10^15, I originally use int64. However the answer is wrong with respect to the symbolic…
2
votes
1 answer

Pass __int64 to CreateThread Parameter

I would like to pass an __int64 as a parameter to my Thread. Here's my current code: void thisismymainfunc( ..., __int64 license, ... ) { CreateThread(NULL, NULL, checkLicBan, (LPVOID)license, NULL, NULL); } the code to the thread: DWORD WINAPI…
Unc3nZureD
  • 194
  • 2
  • 11
2
votes
2 answers

MongoDB and big numerical document IDs

Mongodb uses BSON format to store data on the disk. BSON defines different data types, including signed int64 for storing big integers. Let's try to save document with big ID (887190505588098573), that fits in signed int64 range (its absolute value…