int64 Questions
2
Solved
Hi I have a NSMutableArray and I try this:
var ma = NSMutableArray()
let number:Int64 = 8345834344
ma.addObject(number)// Error "Type Int64 does not conform to protocol AnyObject"
How to add Int...
Hypertensive asked 4/12, 2014 at 23:4
4
Solved
I am loading in lines from a text file with very large numbers. String has the toInt method, but how do you convert a string to an Int64 which will be able to handle the large numbers?
I don't see ...
Crist asked 29/11, 2014 at 5:56
4
Solved
Question regarding Swift 2.1 in Xcode 7.
I have declared an optional variable like this:
var something: Int64?
I would like to later assign it to a dictionary key using a shorthand if, like thi...
4
Solved
Our C++ library currently uses time_t for storing time values. I'm beginning to need sub-second precision in some places, so a larger data type will be necessary there anyway. Also, it might be use...
Congregationalism asked 30/5, 2013 at 16:28
2
Solved
I try to use this code, but gives me an error: constant 100000000000000000000000 overflows int64
How can I fix that ?
// Initialise big numbers with small numbers
count, one := big.NewInt(1000000...
Panek asked 14/6, 2015 at 19:0
2
Solved
I notice in C and C++, we can use int64_t, or simply a long long.
If I compile 32bit code using these types, will I suffer any performance issues on 64bit and/or 32bit machines?
Aside from saving...
5
Solved
I have been using std::atoll from cstdlib to convert a string to an int64_t with gcc. That function does not seem to be available on the Windows toolchain (using Visual Studio Express 2010). What i...
1
Solved
I have a project where I deal with large numbers (ns-timestamps) that don't fit in an integer. I therefore want to to use e.g. int64_t and am currently writing a test case (yes!).
To check the beh...
3
Solved
What I'm trying to do is to define a constant equal to 2^30 (I may change it to something like 2^34, so I prefer to have a room larger than 32 bits for it).
Why the following minimal(?) example do...
Nevski asked 12/3, 2014 at 20:29
4
Solved
How to convert __int64 to long in Windows (MSVC8 & MSVC6)?
Will a normal typecasting work?
Also, how about converting long to __int64? If the long is a negative value, will it work?
Note - ...
1
Solved
I tried:
fmt.Printf("%d", math.MaxUint64)
but I got the following error message:
constant 18446744073709551615 overflows int
How can I fix this? Thanks!
1
Solved
What is the best/fastest way to load a 64-bit integer value in an xmm SSE2 register in 32-bit mode?
In 64-bit mode, cvtsi2sd can be used, but in 32-bit mode, it supports only 32-bit integers.
So ...
3
Solved
I like to initialize my variables to some "dummy" value and have started to use int64_t and uint64_t. So far, it looks like there are at least three ways I could initialize an int64_t to a particul...
2
Solved
An Int64 variable needs to be shifted. I am parsing pseudo mathematical functions from a database file. The Variables are uint32 or int32 so i did put them into an Int64 to handle them equally with...
2
Solved
we use VS 2008
there is a big enum, which is populated by many developers
this enum has a type __int64 (a Microsoft extension), and I want to make compiler complain about non unique values in enu...
Enciso asked 29/6, 2012 at 14:13
2
Solved
In my pch file I have the following definitions:
#if (_MSC_VER < 1300)
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
...
4
Solved
I have a few questions:
Do I need to have 64 bit Processor to use 64 bit data type(__int64 or int64_t) ?
What means by, the "t" of int64_t?
Starting from what version of GCC and VCC are supportin...
2
Solved
I have been playing around with SQL and databases in C# via SqlCeConnection. I have been using ExecuteReader to read results and BigInt values for record IDs which are read into Longs.
Today I hav...
Exurbanite asked 10/3, 2011 at 13:35
3
Solved
This program is written in VC++ 6.0 on a WindowsXP machine.
If I try to set an __int64 variable to -2500000000 directly, it is truncated to a 32bit value and the two's complement is taken.
__int...
Urbanism asked 18/2, 2011 at 20:53
4
Solved
The question is easy! How do you represent a 64 bit int in C#?
Congener asked 2/10, 2010 at 10:2
2
Solved
I'm trying to get the Int64 value of a Directory Services object's "uSNChanged" value. Unfortunately, it is always coming back as a COM object of some kind. I've tried using casting to Int64, calli...
Touter asked 8/7, 2009 at 23:7
2
Solved
I'm witnessing a strange behavior in a .net program :
Console.WriteLine(Int64.MaxValue.ToString());
// displays 9223372036854775807, which is 2^63-1, as expected
Int64 a = 256*256*256*127; // ok
...
Spondee asked 6/5, 2009 at 13:28
3
Solved
6
Solved
I read in the MS documentation that assigning a 64-bit value on a 32-bit Intel computer is not an atomic operation; that is, the operation is not thread safe. This means that if two people simultan...
Fennessy asked 27/2, 2009 at 18:44
© 2022 - 2024 — McMap. All rights reserved.