Top "Parseint" questions

parseInt is a function that returns the integer representation of a given string.

Java: parse int value from a char

I just want to know if there's a better solution to parse a number from a character in a string (…

java parsing char int parseint
Remove leading zeros from a number in Javascript

Possible Duplicate: Truncate leading zeros of a string in Javascript What is the simplest and cross-browser compatible way to remove …

javascript html parseint
Java - checking if parseInt throws exception

I'm wondering how to do something only if Integer.parseInt(whatever) doesn't fail. More specifically I have a jTextArea of …

java string jtextarea parseint
Parsing a Hexadecimal String to an Integer throws a NumberFormatException?

So, In Java, you know how you can declare integers like this: int hex = 0x00ff00; I thought that you …

java integer parseint hex
Java: Comparing ints and Strings - Performance

I have a String and an int, lets say: String str = "12345"; and int num = 12345;. What is the fastest way of …

java performance comparison parseint
Why does parseInt(1/0, 19) return 18?

I have an annoying problem in JavaScript. > parseInt(1 / 0, 19) > 18 Why does the parseInt function return 18?

javascript parseint
Why is JSON invalid if an integer begins with a leading zero?

I'm importing some JSON files into my Parse.com project, and I keep getting the error "invalid key:value pair". …

json parsing object zero parseint
Is NaN equal to NaN?

parseFloat("NaN") returns "NaN", but parseFloat("NaN") == "NaN" returns false. Now, that's probably a good thing that it does return …

javascript function nan parseint parsefloat
Javascript parsing int64

How can I convert a long integer (as a string) to a numerical format in Javascript without javascript rounding it? …

javascript integer parseint
In Java, how do I check if input is a number?

I am making a simple program that lets you add the results of a race, and how many seconds they …

java swing parseint