0

How to take the minor symbol in a Java account

I was wondering how to remove the least ( - ) that gets when I make an account Example: double X = 10; double y = 5; double res = X - y; Result comes out like this: -10 How do I remove this -

10th Jun 2022, 2:35 AM
Isaac Lima
Isaac Lima - avatar
3 ответов
+ 2
X - y (10 - 5) should yield 5.0. How can it be -10?
10th Jun 2022, 5:17 AM
Ipang
10th Jun 2022, 5:15 AM
Roland
Roland - avatar
0
Kkkkkk Account error, I made the account and did not even notice this detail
26th Jun 2022, 6:09 AM
Isaac Lima
Isaac Lima - avatar