Normally you have only a thin space between a quantity and it's unit so the way to go would be:
3.14\,\text{in}
the \, sets a 'thin space'.
\,