I feel like this question has been asked here before, but I'm not finding it.

In an imaginary quadratic integer domain, it is very easy to round algebraic numbers to algebraic integers. For example, there are four choices for rounding $$\frac{1}{2} + \frac{\sqrt{-5}}{2},$$ three of which are suitable for attempting the Euclidean GCD algorithm. Likewise for $$\frac{7}{2} + \sqrt{-3}.$$

But in real quadratic integer domains, the possibilities seem endless. For example, what do you make of $$\frac{7}{2} + \sqrt{3}?$$ It's approximately $5.232$, so it seems logical to try $5$ and $6$ as rounds. But given an arbitrary integer $a$, we could probably always be able to choose an integer $b$ such that $q = a + b \sqrt{3}$ is within half a unit interval of $5.232$. How do you choose the right number $q$? Or is a choice impossible if you don't know the dividend and divisor?

EDIT: To clarify, this is not about what the integers of a given $\mathbb{Q}(\sqrt{d})$ are, I already know that. Nor is it about whether the Euclidean algorithm even works in such a domain.

This is about how to divide one number in $\mathbb{Q}(\sqrt{d})$ by another in that same domain, and, when $d$ is positive and the division is not an algebraic integer, how to choose one algebraic integer to round it to, from among seemingly infinitely many choices.

If, for whatever reason, that algebraic integer turns out to be unsuitable, how then to choose another? And how to know when to give up? These questions are very simple when $d$ is negative and I can answer them. But when $d$ is positive, I really don't know what to do.