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

Input string was not in a correct format. Converting string to int

Input string was not in correct form. I'm getting an exception on runtime as "System.FormatException". Follwing lines shows exception- public int Task { get { return Int32.Parse(TaskText.Text); } set { …
Dinesh
  • 507
  • 4
  • 14
  • 23
0
votes
2 answers

umbraco xslt getMedia error

Searching for an error with GetMedia on Forum, I read that the variable i give the functions is not an integer. Here is the error: System.OverflowException: Value was either too large or too small for an Int32. I check my variable:
Benjamin
  • 31
  • 6
0
votes
0 answers

Failed to convert parameter value from a String to a Int32 c#

I have two DROP DOWN LISTs :one for PROVINCE and one for CITY which are connected to a DB. I want to be able to select a PROVINCE from the first drop down list and be able to see the CITIES of that special PROVINCE in the second drop down list. But…
0
votes
3 answers

Storing ints in a hash table instead of int32

Given two strings, say hashKey and hashVal, I add the pair to a hash object. In this example hashVal is a string representing an integer, and thus I parse it as such before storing it in the table. Now here's the problem. The value stored in the…
Dave
  • 1,896
  • 2
  • 14
  • 15
0
votes
1 answer

C# type corresponding to T-SQL's INT(32) (possibly NAN)

My C# manipulates ID's read from the Database. Originally, they are stored in CHAR(32) NOT NULL format. (that's the table's primary key) Once in C#, this is converted to Int32 (logically ?) But when I need to insert those values back into another…
Skippy Fastol
  • 1,745
  • 2
  • 17
  • 32
-1
votes
2 answers

Is it safe to assign bool or float to int32_t?

I have a c++ project that have a struct with int32_t member data type and i want to assign bool and float variables to it, will that ruin the value of the variable? If yes, what should i do other than changing the struct member data type?
Zaki DX
  • 7
  • 2
-1
votes
2 answers

Understanding Decompiled Assembly Code

I'm trying to understand this code from assembly, int32_t phase_5(char * str) { int32_t v1 = 0; if (strlen(str) != 4) { // 0x8049153 alert_henchmen(5); v1 = 0; // branch -> 0x80491a6 } while (true) { …
Nan Xue
  • 35
  • 1
  • 3
-1
votes
2 answers

Convert string lines from a .ini file to int32

My program creates couple string hex numbers and saves it to a .ini file on my computer. Now I want to convert them to int32. In my .ini file the hex values are listed this way: 02E8ECB4 02E8ECB5 02E8ECE7 02E8EC98 and now I want these values in…
-1
votes
2 answers

Crash with reading Int32 with Swift 2 and core data

Trying to read data in Swift (2) from an NSDictionary with Xcode 7.3 I came across the infamous EXC_BAD_INSTRUCTION (code=EXCI386_INVOP,subcode=0X0) error when trying this: let aDict = data as! NSDictionary car.tempo = aDict["tempo"] as! Int32 No…
caxix
  • 1,085
  • 1
  • 13
  • 25
-1
votes
1 answer

CoreData NSNumber to Int32

I've read several posts here and here and I understand the "why". None of the suggestions in these posts functioned for me, but doing the conversion a step at a time did. This feels like a hack to me and like I'm missing something. I've included…
-1
votes
3 answers

Why does Convert.ToInt32(byte) work in code?

I've been trying to figure out how mscorlib Convert.ToInt32(byte) works given I only have access to .Net 2.0 for a project. Trying to use a .Net reflector to open that dll has resulted in no help so far in trying to see how .Net handled it in .Net…
Euthyphro
  • 700
  • 1
  • 9
  • 26
-1
votes
1 answer

General comparison function, non-type specific, error-tolerant

I'm writing a general alerts system based on user-generated conditions. Test values & actual values are handled as objects since they could be numeric, boolean, or string depending on the selected property. It needs to be error tolerant and fail…
Brendan Hill
  • 3,406
  • 4
  • 32
  • 61
-2
votes
1 answer

How to convert int32 to float javascript

I need to convert values ​​of type int32 to float values I have the value of 39900 and I need to convert to 399.00, or 7400 to convert to 74.00 or 4378 to 43.78, they are not fixed values.
wiliamvj
  • 23
  • 1
  • 6
-2
votes
1 answer

using if to display an invalid text

hello I'm just a beginner in C# language I want to learn how to use "if" on this part of the code for example when I type a character or letter input in the console and pressed enter it should display a text "Invalid, please enter a valid value." or…
-2
votes
2 answers

Cant use decimals when defining a value. C#

I have these two lines: Int32 val3 = 8; Int32 val4 = 0.66; The first line works, but the second does not. I don't know why, and I don't know how I would go to fix this or what to search for.
1 2 3
12
13