This is java I need help writing this formula in my code I thin something is wrong with brackets
Go to solution
Solved by shadowbyte,
you're going to want this
double finalScore = (Math.sqrt(Math.pow(x2 - x1, 2) +(Math.pow(y2 - y1, 2))));
-
Topics
-
ShayOh ·
Posted in Troubleshooting0 -
Newbietobe5467 ·
Posted in Troubleshooting2 -
1
-
robjt ·
Posted in Troubleshooting11 -
3
-
4
-
Dixel ·
Posted in Troubleshooting10 -
Gerowen ·
Posted in Troubleshooting5 -
0
-
Hassan Zarabi ·
Posted in Graphics Cards2
-
-
play_circle_filled
Latest From Linus Tech Tips:
I Will NOT Give You $250 for Your Broken Game - WAN Show April 26, 2024
-
play_circle_filled
Latest From ShortCircuit:
I tried 20 influencer foods, here are the best… and the worst…
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now