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
GrinOP2y ago
damn i forgot to post as beginner again
Aaron
Aaron2y ago
what are the types of numA and numB?
Grin
GrinOP2y 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
GrinOP2y ago
ty that solves it
Accord
Accord2y ago
Closed!
Want results from more Discord servers?
Add your server