python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to make a result from a calculator, e.g .: Result: (result of adding)
If you enter 2 numbers in 2 fields, addition and multiplication will be displayed at the same time. After execution, he has to write e.g. Adding: (result of addition) Multiplication (result of multipl...
popo
Votes: 0
Answers: 1
I am trying to write a JavaScript program that calculates gross pay, overtime, netpay and deducts taxes from the netpay based on dependants claimed
I have the first half of the program running fine which gets the users hours worked and payrate and then prints the gross pay with overtime pay if there is any. But I need to print the net pay to the ...
Skunkybuddy
Votes: 0
Answers: 2
Typescript returns string on operation number.tofixed & parseFloat doesn't return double as datatype always
const number = 100
number.toFixed(2) -> "100.00"
parseFloat(number.toFixed(2)) -> 100
I am not getting expected result as 100.00 as double type
if input is 100.36 getting expected ...
Poonam Kumari
Votes: 0
Answers: 1
Javascript: prevent parseFloat from converting large number to scientific notation
I have some data in a node app which are numbers in string format. I'm trying to parse them and round off to 3 decimals by parseFloat(num).toFixed(3). Since the numbers are very large, it is automatic...
Sai Krishna
Votes: 0
Answers: 1