C
C#3y 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
GrinOP3y ago
damn i forgot to post as beginner again
Aaron
Aaron3y ago
what are the types of numA and numB?
Grin
GrinOP3y 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
Aaron3y ago
yeah Math.Sqrt only takes a double
Grin
GrinOP3y ago
ty that solves it
Accord
Accord3y ago
Closed!

Did you find this page helpful?