Questions tagged [int32]

int32 is a datatype that represents an integer and is coded on 32 bits in memory.

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

187 questions
0
votes
2 answers

Why is a string expected at this point?

From an answer or comment to my question here, I was directed here. So I changed my code from this: double _imdbThreshold = 0.0; (IMDBRating is a Decimal(2,1) data type in the SQL Server (Express)…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

Python - Why is result of CRC32(np.int64(1)) different to CRC32(np.int32(1))?

CRC32 comparisons in Python: >>> zlib.crc32(np.int64(1)) == zlib.crc32(np.int32(1)) False >>> np.int64(1) == np.int32(1) True >>> zlib.crc32(np.int64(1)) 2844319735 >>> zlib.crc32(np.int32(1)) 2583214201 The polynomial expression of 1,…
neil
  • 5
  • 2
0
votes
2 answers

changing numpy array from type int64 to type int32 corrupts the data

I am using a very large dataset with pandas, and in order to reduce my use of memory, I cast all my columns from float64 to float32 and from int64 to int32. One of the columns is a timestamp in nanoseconds (something of the sort of…
alonrieger
  • 13
  • 2
0
votes
0 answers

Unable to cast object of type 'System.String' to type 'System.Int32'

I am a new developer and brand new in azure SQL database and I've published an application which is working fine on my local machine. But I am getting casting error when trying to login on publishing application I don't know why. This is the…
Ektiva
  • 3
  • 2
0
votes
2 answers

Weird issue with casting substring to integer

I'm getting a weird issue with substringing. Apparently the string I get can't be cast into an Int32 for some odd reason. The error message I get when I try doing that is "input string is not in correct format". Because of this, I can't insert these…
rafale
  • 1,704
  • 6
  • 29
  • 43
0
votes
2 answers

Can Int's default size be changed?

On 64-bit platforms, Int is the same size as Int64, and on 32-bit platforms, Int is the same size as Int32. Can this behavior be changed, i.e. can Int's size be forced to be Int32 on 64-bit platforms?
atirit
  • 1,492
  • 5
  • 18
  • 30
0
votes
2 answers

Rounding 64 bit integers to 32 bit integers

I have a function that does rounding operation as shown below. It takes 64bit integer as input and gives 32bit integer as output. While converting, a factor of 0x40000000 is being added to the input. What is the reason behind it? int rounder(long…
rkc
  • 111
  • 8
0
votes
1 answer

How can convert System::Int32 to wchar_t*

I have this piece of code: int casted_dbValue=3; wchar_t* nativeData=(wchar_t*)casted_dbValue; it is incorrect conversion between int to const wchar_t*. How can deal with this error?
Aan
  • 12,247
  • 36
  • 89
  • 150
0
votes
5 answers

Store signed 32-bit in unsigned 64-bit int

Basically, what I want is to "store" a signed 32-bit int inside (in the 32 rightmost bits) an unsigned 64-bit int - since I want to use the leftmost 32 bits for other purposes. What I'm doing right now is a simple cast and mask: #define packInt32(X)…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
1 answer

What are the different types of datatypes?

I'm working on a Machine learning model, the data I am having is very large, I am thinking of reducing the size of each column, actual size is int64. I want to know what are the types of Int from int4 to int64 and are there any data types for an…
Krishna75
  • 17
  • 5
0
votes
2 answers

Optional Int32 values in Core Data require unwrapping of optional Int32 values in code

In Core Data, attributes of type String and Int32 are "Optional" (ticked in properties). Corresponding to these values in code, are the same types as optionals. var color1: String? var color2: String? var color3: String? …
DrWhat
  • 2,360
  • 5
  • 19
  • 33
0
votes
1 answer

How to fix input string error when converting string

I am marking some code and cannot understand why this error keeps throwing up (Same code works on other pupil solutions. This is a simple add client form. Trying to add the details into a text file. The error "Input string was not in a correct…
Edel_28
  • 31
  • 9
0
votes
0 answers

when using a progressbar gui form how to exceed the limit max [int32] of $progressbar.Maximum

I sometimes need to back up large files. I made a program to help me in this task which displays a gui progress bar. $progressbar.Maximum is an int32 type and I can not modify it to int64. I tried to convert it like this [int64]$progressbar.Maximum…
kramer
  • 177
  • 1
  • 4
  • 15
0
votes
1 answer

why does a 32-bit value cause a WCF System BadImageFormatException?

I published a small web application with WCF services locally by using a File System in Visual Studio Community 2017. I hosted it locally to test it and I noticed that a single WCF service was not called and raised a System.BadImageFormatException.…
SoftDev30_15
  • 463
  • 7
  • 20
0
votes
0 answers

sending serialized int32_t in a char buffer and parse it back to int32_t

I want to send a structure from a client to a Server via udp. Therefor I want to write a int32_t (because of the fixed size, so I know where to find it in the char[]). When I use (Counter, total and size are int32_t) snprintf(*netbuf, headersize ,…
Sunnyyy
  • 1
  • 3