int32 Questions

6

Solved

I thought .net had some kind of easy conversion method to use for converting an int into a byte array? I did a quick search and all solutions are bit masking/shifting one byte at a time, like "the ...
Bosket asked 14/11, 2010 at 7:57

3

Solved

I am using Entity Framework, and I have a line of code that is taking a var and translating it back to an iint for the database. var record = context.enrollments.SingleOrDefault (row => row.us...
Senior asked 22/4, 2014 at 4:42

1

Solved

I've written a cpp program, and I am able to run it with int32_t main() but not with the signature int main(). Can someone tell me why? Its a .cpp file and not a .c file (as mentioned in some other...
Reductive asked 24/8, 2020 at 8:56

8

Solved

I am porting an existing application to C# and want to improve performance wherever possible. Many existing loop counters and array references are defined as System.UInt32, instead of the Int32 I w...
Eminence asked 20/11, 2008 at 19:50

5

Solved

What is the difference between Int32 and UInt32? If they are the same with capacity range capabilities, the question is for what reason UInt32 was created? When should I use UInt32 instead of Int3...
Fabien asked 21/2, 2010 at 20:3

0

While working with the NCurses module I ran into some strange behavior that I've distilled in the repl as: > my $c = ' '.ord 32 > $c.WHAT (Int) > my int32 $n = ' '.ord 32 > $n.WHAT Byt...
Chian asked 7/4, 2020 at 18:54

3

Solved

I'm really stuck! I'm not an expert at ObjC, and now I am trying to use Swift. I thought it would be much simpler, but it wasn't. I remember Craig said that they call Swift “Objective-C without C”,...
Churchly asked 15/1, 2015 at 17:15

7

Solved

I have a double number as string. The number is 202.667,40 Which is 202667.4 How can I parse this string to get the value like: Double.Parse("202.667,40",?what here), or any other method to ...
Antiserum asked 24/2, 2011 at 20:3

6

Solved

I have a short array in c# and I need to convert two elements in an Int32. The code I wrote is the following uint pesoparz = (Convert.ToUInt16(values[0])); Int32 pesotot = Convert.ToInt32(pesoparz...
Apophyge asked 11/1, 2017 at 14:32

3

Solved

I have a form that when I select a column name from a ComboBox, and type in a text box it filters and displays the searched criteria in the DataGridView. When I search for "Reference" which is an i...
Ruffian asked 11/3, 2014 at 14:15

3

Solved

I'm coding in C# for Windows Phone 7.5; I am taking text from a text box, parsing it into an array, then converting each array element into an Int32 using Convert.ToInt32, then running the resultin...
Pogey asked 9/3, 2013 at 20:12

6

Solved

I have following code int varOut; int.TryParse(txt1.Text, out varOut); // Here txt1.Text = 4286656181793660 Here txt1.Text is the random 16 digit number generated by JavaScript which is an in...
Upcast asked 18/12, 2015 at 6:42

1

Solved

Members, What I am trying to do is to right or left shift the digits of an Int32(not the bits!!). So if shift the constant: 123456789 by 3 I should get 789123456 So no digits get lost, be...
Janik asked 1/7, 2015 at 17:46

2

Solved

How can I archive the following in Go? Let's say I have two int32 which both have the value 33. How can I combine them into one int32 with the value 3333 instead of 66?
Sniggle asked 19/1, 2015 at 16:41

2

Solved

Here my code. I am passing two values into CGRectMake(..) and getting and error. let width = CMVideoFormatDescriptionGetDimensions(device.activeFormat.formatDescription as CMVideoFormatDescription...
Torrent asked 27/11, 2014 at 12:36

6

Solved

I saw in MSDN documents that the maximum value of Int32 is 2,147,483,647, hexadecimal 0x7FFFFFFF. I think, if it's Int32 it should store 32-bit integer values that finally should be 4,294,967,295 ...
Stadtholder asked 5/11, 2012 at 10:19

1

Solved

There are 4 bytes read from TCPSocket (actually socket returns a string and then I call .bytes to get an array). Now they need to be converted to int32 big endian. Or may be TCPSocket has some met...
Muth asked 23/5, 2014 at 8:6

1

Solved

I have a question about int32 storage (c#). 32 bits means that the biggest number for int is 2^32. 2^32 = 4294967296, if you divide it by 2 you get the maximum value for an int32 : 4294967...
Deirdredeism asked 31/3, 2014 at 11:11

2

Solved

I would like to understand a strange behavior of python. Let us consider a matrix Mwith shape 6000 x 2000. This matrix is filled with signed integers. I want to compute np.transpose(M)*M. Two optio...
Pinder asked 11/9, 2013 at 14:3

2

Solved

What is the difference between the two? I know that int32_t is exactly 32 bits regardless of the environment but, as its name suggests that it's fast, how much faster can int_fast32_t really ...
Ceylon asked 23/4, 2013 at 8:0

1

Solved

In VB.NET, is there any difference between Integer and Int32? If yes, please explain.
Nobe asked 8/3, 2013 at 6:4

1

Solved

I cannot find the relationships between these types using .Net reflector. Any idea?
Haulm asked 2/8, 2012 at 6:50

4

Solved

Looking at the msdn documentation for Convert.ToInt32() it states: If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is c...
Crook asked 11/7, 2012 at 11:35

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

4

Solved

No exception is thrown, function just halts at this statement: int productQuantity = Convert.ToInt32("1.00"); and returns. What am I doing wrong to convert this float to Int32? Note: I am run...
Ergosterol asked 24/8, 2010 at 15:27

© 2022 - 2024 — McMap. All rights reserved.