how do you calculate it in java and get same answer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how do you calculate it in java and get same answer?

so i have a calculation that just wont work can someone help me ? i am trying to make java calculate this 3.96%*(1-25.56%) and the answer should be 0.02947824 but when the calculation is made in java the output is -97.2576

11th Dec 2016, 5:09 AM
Brudge Kisekka
Brudge Kisekka - avatar
2 Answers
+ 7
1*0.0396*(1-1*0.2556) gives right answer
11th Dec 2016, 11:29 AM
ะะปะตะบัะตะน ะ .
ะะปะตะบัะตะน ะ . - avatar
+ 3
how do you compute percent? what is your code ?
11th Dec 2016, 6:29 AM
Saeed
Saeed - avatar