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

why my wpf application get value -2097152 when capture Network card speeds?

I have developed an application which one capture network card speeds,i use below code to get data: NetworkInterface nic = nicArr[0]; IPv4InterfaceStatistics interfaceStats = nic.GetIPv4Statistics(); Int64 bytesSentSpeed =…
zhang mike
  • 65
  • 1
  • 9
0
votes
3 answers

copy byte-reversed uint64_t to uint8_t array

I know how to reverse the byte order (convert big endian to little endian in C [without using provided func]) - in this case I'd like to use __builtin_bswap64 I also know how to copy a 64bit uint to a char array - ideally memcopy. (How do I convert…
Perlator
  • 241
  • 1
  • 2
  • 11
0
votes
1 answer

Pandas sum of column overflow on Windows

I'm developing an app that must be executed in a Windows Server (2012 R2). When I run it locally (Win 7), It looks fine, but when I run it in the server I had negative results when it supposed to be positive: DataFrame.column.sum() I read that's…
Pablo
  • 3,135
  • 4
  • 27
  • 43
0
votes
2 answers

i want to extract fractional part from a given double variable with exact precision.I m getting only upto 6 precision

I'm trying to run this. I have tried fmod too. Nothing worked yet. void main(){ double a = 123.46566662; double frac = a - (long)a; printf("%f", frac); } //tried int64_t too // output is :.465667
sociopath
  • 79
  • 1
  • 6
0
votes
1 answer

Neo4j - Issue creating relationships with Int64.MaxValue stores incorrect value

I'm using neo4j v3.1.0 and creating the following simple graph. create(d:User{code:'testid'})-[:STATE {to:9223372036854775807}]->(UserState{name:'Paul',email:'paul@test.com'}) The value in the to relationship is a long.MaxValue which I am using as…
Paul
  • 3
  • 1
0
votes
5 answers

Change all values in a datatable column of type Int64 to type Datetime in C#

I have a datatable with four columns and n rows. In the first column I have only integers (Int64) who represent a datetime. In the other three columns I have strings. I only want to Change the integer values in the first column to a Datetime in the…
Thomas
  • 11
  • 3
0
votes
0 answers

Conversion of NSData to int64 in Objective C

One of my application's DB is already written and used by other platforms.I have to save an image as int64 data type as the attribute is having int64 as the type.How can i convert image to int64 and retrieve it back from core data?Or should i…
iOS Developer
  • 1,723
  • 2
  • 16
  • 47
0
votes
1 answer

In Golang, transformation from int64 to string and then slice doesn't work

I've have this code on a client that receives a gzipped response from an API : client := &http.Client{} response, _ := client.Do(r) // Check that the server actual sent compressed data var reader io.ReadCloser switch…
Juanse
  • 95
  • 8
0
votes
2 answers

Python : how to convert max int64 number to float?

Is there a way to convert max int64 number to float number? I have a max int64 number 9223372036854775807 I want to convert this to float or double. How can I do it in python? I am developing an automated trading system using a well known broker's…
Chiyaan Suraj
  • 1,021
  • 2
  • 13
  • 27
0
votes
1 answer

MongoDB find() slow when querying a 64-bit integer field

I have a Mongo collection called Elements containing ~9 million documents. Each document has the following structure: { _id : "1", Timestamp : Numberlong(12345), Nationality : "ITA", Value: 5 } If I run the following…
0
votes
2 answers

Computing determinant and using division and multiplication of uint64_t C type

This question has been edited to clarify it. I have the following matrix, defined in page 1 of [reteam.org/papers/e59.pdf], written in R notation: m1 =…
Marc Kees
  • 206
  • 2
  • 15
0
votes
1 answer

Error in View() data.frame containing int64 in RStudio

I've noticed a problem when attempting to View() data.frames/.tables with int64 columns in RStudio (using v0.99.892, but problem is not version specific). > dt2 a b c 1: 1 -126208802 84258755 2: 2 -126194884 1402875037 3: 3…
C8H10N4O2
  • 18,312
  • 8
  • 98
  • 134
0
votes
3 answers

How to fit a structure in an int64?

I need to fit the following structure into int64. day 9 bit (0 to 372) year 8 bit (2266-2010 = 256 y) seconds 17 bit (24*60*60=86400 s) hostname 12 bit (2^12=4096) random 18 bit (2^18=262144) How do I make such a structure fit in an int64? All…
Stefan Steiger
  • 78,642
  • 66
  • 377
  • 442
0
votes
1 answer

Android JNI print int64_t to file

I am trying to use JNI code to print Android sensor timestamps to a file. The timestamps are defined as int64_t. The line to print the timestamp is: fout<
Richard
  • 56,349
  • 34
  • 180
  • 251
0
votes
1 answer

Getting different output when casting between int and int64 in Go; is it due to processor architecture?

A small part of an application I'm using to test some expected behavior is giving different output, depending on what processor I run it on. Here's the relevant part of the code: for b := 0; b < intCounter; b++ { //int64Random =…
Bart Silverstrim
  • 3,445
  • 6
  • 34
  • 44