Sometimes there is no single answer, and the calculator tells you so instead of giving a wrong number. For one equation, that happens when a = 0. If b is also 0, the equation reads 0 = 0, which is true for every value of x, so there are infinitely many solutions. If b is not 0, the equation reads something like 5 = 0, which is never true, so there is no solution at all.
For a system, the same idea shows up in the determinant. When D = 0, the two lines are parallel or the same line. If they are the same line, every point on it is a solution, so there are infinitely many. If they are parallel but different, they never meet, so there is no solution. The system x + y = 2 and 2x + 2y = 5 has D = 0 and no solution, while x + y = 2 and 2x + 2y = 4 has D = 0 and infinitely many solutions, because the second equation is just the first one doubled.
Our decimal to fraction calculator is useful when a system gives decimal answers that you want to read as exact fractions instead.