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
4 answers

How can i equal a int to a int64_t with out getting the conversion loses integer precision warning?

I am getting the implicit conversion loses interger precision warning and need help finding a solution. I have seen similar problems but have not found a solution for my problem yet. This are the integers that are declared... @property (nonatomic)…
Emmanuel Amaro
  • 157
  • 1
  • 1
  • 8
0
votes
1 answer

Int64 in some Gaussian Randomness Code

So I'm reading an AI book and it is talking about Gaussian Randomness and it includes this example code unsigned long seed = 61829450; double GaussianRand() { double sum = 0; for (int i = 0: i < 3; i++) { unsigned long holdseed =…
ShadowManes
  • 68
  • 10
0
votes
2 answers

How to retrieve a bigint from a database and place it into an Int64 in SSIS

I ran into this problem a couple years back and am hoping there has been a fix and I just don't know about it. I am using an 'Execute SQL Task' in the Control Flow of an SSIS package to retrieve a 'bigint' ID value. The task is supposed to place…
Wayne E. Pfeffer
  • 245
  • 1
  • 7
  • 15
0
votes
1 answer

Convert Unix Timestamp to .net int64 datetime

First of all, I know that it's duplicate, but those questions aren't what I am looking for. I'm using an API to add participants in an online application. When I post JSON object to endpoint, everything is posted except dates. There's some…
Rizwan
  • 290
  • 1
  • 5
  • 15
0
votes
2 answers

How to format Int64 values to currency

i am developing an application, where i save money values in the database as int64. For example, if i save 1 euro in the database, it gets saved as 100 cents. When I read the value, how can i format it so it gets displayed like this: db value /…
mxcoin
  • 13
  • 3
0
votes
1 answer

Matlab multiple type numbers in same table

I want to put those two types of number inside one table. One column with index int64 and another column with value single.... 1359410513 1359410521 1359410529 1359410536 1359410542 …
0
votes
3 answers

Converting an int64 value to a Number object in JavaScript

I have a COM object which has a method that returns an unsigned int64 (VT_UI8) value. We have an HTML page which contains some JavaScript which can load the COM object and make the call to that method, to retrieve the value as such: var foo =…
Matt
  • 141
  • 1
  • 3
0
votes
5 answers

Why do I get Arithmetic overflow when :(Int64)(System.Data.SqlTypes.SqlInt16.MaxValue+1);

What do I overlook in the expression below? Does not Int64 type has larger range than Int16? Int64 value = (Int64)(System.Data.SqlTypes.SqlInt16.MaxValue+1); System.Data.SqlTypes.SqlInt16.MaxValue is 32767. Int64.MaxValue() is…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
1 answer

Breeze Js loading of very big Int64 values

We have problem with loading all very big Int64 values from server to client. I think problem is for all numbers larger then 25776087313154050. We using No DB approach of Breeze and makes all metadata manually. Here is…
Grigorii
  • 87
  • 1
  • 1
  • 9
0
votes
1 answer

Javascript port of C# BitConverter.DoubleToInt64Bits

This question is related to this, but because I try to optimize the function for speed, I ask this question as a new one. I'm translating new floats Clipper library from Angus Johnson to Javascript, and there is a function IsAlmostEqual, which…
Timo Kähkönen
  • 11,962
  • 9
  • 71
  • 112
0
votes
0 answers

Cast double to Int64 in C# causing problems on mobile device?

I've got some code for a game I'm working on that converts double values to Int64. The problem areas is as follows: double xVal = 1.6; Int64 xValInt64 = (Int64)xVal; Int32 xValInt32 = (Int32)xVal; Testing on my PC works great. However,…
Tyson
  • 1,226
  • 1
  • 10
  • 33
0
votes
1 answer

how to test if unsigned __int64 number exceeds range

I have a function where calculated values can reach higher values than the range of unsigned __int64 which is indicated by MS by 18,446,744,073,709,551,615. How can I test if a number has exceeded that range? I've converted the int into char and…
user1331044
  • 83
  • 1
  • 11
0
votes
2 answers

prototype of int64_t or offset64 both linux and windows 32bits system

I am developing a application which needs functions of int64 variables. and i was told offset64 or int64_t is viable for my need... But i just wanna what is the prototype of int64 under 32bit system... How can i use the variable. is it a struction…
StevenWang
  • 3,625
  • 4
  • 30
  • 40
0
votes
1 answer

How to calculate the result of the multiplication of two int64 numbers modulus another int64 number?

Let a, b, and c be long long (int64) numbers, how to calculate (a*b)%c? The problem here is that you can't multiply (a%c)*(b%c) because it won't fit on an int64 variable. So, what can it be done? Just in case it's helpful, I'm jusing C++.
Daniel
  • 41
  • 1
0
votes
1 answer

C# convert one's complement bits to a two's complement long?

In C#, how can I convert a 64 bit ones complement number (represented as a long or ulong) to a signed two's complement long? For reference, I'm trying to implement ULP-based double comparison using BitConverter.DoubleToInt64Bits().
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152