I appreciate this is very basic. Please go easy on me, I am at the beginning of my coding journey! I am trying to establish whether there is an integ ...
I appreciate this is very basic. Please go easy on me, I am at the beginning of my coding journey! I am trying to establish whether there is an integ ...
I am trying to turn rectangle.style.width = "100px"; into a variable using parseInt so that I can place that variable into two buttons so I can either ...
I'm currently working on a program in Java(beginner) and I need some assistance getting my buttons to actually work in the GUI. I copied my code to th ...
I want to convert the strings coming from my db into numbers and into dates. In one instance they are coming as a string of miliseconds, and in the ot ...
parseInt(0.000001) returns 0 But parseInt(0.0000001) returns 1 Does anyone happen to know the reason for this behaviour? ...
//The read file has this: Vehicle,Speed,Time Train,40,3 //The speed variable works fine, it is read from file fine and converted to int fine. The ...
When I am trying to add two numbers, I am able to get NaN. If anyone has any advice, any help would be greatly appreciated. This is my Code:- Outp ...
I am currently iterating through an array and adding the key to my panels array. I am getting the correct length of the array which is three but my pa ...
I am using a text area to display the time, an input field to get a number and a button to execute the function: <textarea name="demo" id= ...
i am trying to add 2 number as value from input form. typeof(parseInt(value1)) and typeof(parseInt(value2)) return number but parseInt(value1)+parseIn ...
I am working with GBP currency in Javascript and converting a string currency to a number like the following: Number('1.20') will give me 1.2. But I w ...
Why do my JOptionPane.showInputDialog windows disappear before I can enter an input? I think it's what's causing my code to break. I've googled everyt ...
Let's say you have an array that looks like this: arr = ['Steve', '80000', 'Jen', '90000', 'Bob', '40000'] Where arr[0] and arr[2] ar ...
I have a file pretty much as follows, but for a couple more names (each word and number is on a separate line) : James 123 343 355 Kyle 136 689 680 I ...
I've got almost no experience with Javascript and I need make a "calculator" type website. This is the part of the code that is suppose to calculate, ...
Hello everyone i am new to java and i have a problem. I accept a number with the String type, then I write it to the txt variable, then I overwrite it ...
when i do this i don't get an error 22, 23 but when i do this 22 ,23 i get the following error: Exception in thread "main" java.lang.NumberFo ...
Hello I have a function that reads int's separated by whitespace (0 1 0 2 0 1 0 2 0 1 0 1) and inserts position by position in a vector. This is worki ...
My java program won't convert unicode to int, but will convert ascii to int. The first line works and converts ascii 53 to int 5. However, the second ...