java-programming
java-programming copied to clipboard
About double year variable
Hello, Angie
Thank you for your course
Why an error occurs when I enter 2,5 years instead of 2.5 years BUT at the same time, 30,500 dollars is ok?
Both variables are "double". Then why I can enter 30,500 dollars but no 2,5 years?
Would be great if you can check my code here at https://repl.it/join/xyryefdd-diegotco
Thanks again
Then, when I enter the 2.5 number, everything is ok
Very weird
PD: My Mac has an admin pass, so I can't install anything, that's why I use repl.it