when typesetting numbers and units, my preferred way is to have a space between them for better readability. For instance, one would typeset
24 V
instead of
24V
It is actually not only my preferred way of writing because it just reads easier, it is also the way recommended by standards like the US NIST or German DIN.
My only problem is that a line break between the number and the value would cremate all the good things about the whole thing. I've searched some, and found that the nobr html command is actually dirty style (and not supported by SE anyway). Also, when just wanting to write something simple like 24 V, using the LaTeX markdown \$\text{ 5 V}\$ seems a bit too much.
Thus, my question: What is the best way of using a blank character and preventing a line break at the same time?