C
C#2y ago
Grin

✅ Can someone help me figure out how to write the quadratic formula? I keep getting an error

I think the error is because of some double, but all of my values are decimals.
6 Replies
Grin
Grin2y ago
damn i forgot to post as beginner again
Aaron
Aaron2y ago
what are the types of numA and numB?
Grin
Grin2y ago
I think the problem was with the Math.Sqrt() part once I changed all the variables to double it fixed it. every variable was a decimal before
Aaron
Aaron2y ago
yeah Math.Sqrt only takes a double
Grin
Grin2y ago
ty that solves it
Accord
Accord2y ago
Closed!