>You can then use the Quadratic Formula (e.g.
http://mathworld.wolfram.com/QuadraticEquation.html ) to determine the 2 roots, which may both be real, or complex. If complex, you'll likely have to trap the error (taking the square root of a negative number) in your math routine.
Reminder: there is also a third case, two identical roots (if the discriminant is equal to zero).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)