I would like to use the symbol $\sim$ as "approximately". e.g:
\documentclass{article}
\begin{document}
There are $\sim 10^{80}$ atoms in the universe.
\end{document}
I think that I need to declare $\sim$ as some sort of unary math operator, to make the spacing correct! How?
Edit:
Here: http://en.wikipedia.org/wiki/Tilde it can be read, that $\sim$ can be used both as a binary relation operator, and an unary operator meaning "approximately".
Common use
This symbol (in English) sometimes means "approximately", such as: "~30 minutes ago" meaning "approximately 30 minutes ago".[2] It can mean "similar to",[3] including "of the same order of magnitude as",[4] such as: x ~ y" meaning that x and y are of the same order of magnitude. Another approximation symbol is ≈, meaning "approximately equal to."
\simis a relation symbol, and usually one wants some space between it and the following object. If you want no space (but I would avoid it), then${\sim}10^{80}$will do. – egreg May 13 '12 at 19:44$\approx$instead of `$\sim$. – Mico May 13 '12 at 19:56$\approx$for "approximate equal". e.g$\pi \approx 3.14. -but it looks wrong(ugly) for "approximately" as in my example. – hpekristiansen May 13 '12 at 20:21$\sim$behave nicely. (minus ,-can also be both unary and binary e.g.$2-5=-3$– hpekristiansen May 13 '12 at 20:28\simis used as unary operator in your example, but rather a binary relation with one side implied in the natural language part of the sentence, similar to "The circumference of a circle is$\approx 3.14$times the diameter" or "When playing Musical Chairs, the number of chairs is the number of players${}-1$(not:$-1$)". -- And yes, under many circumstances, such things look awful and one should consider less obtrusive mixtures of natural and language and math formulas – Hagen von Eitzen Feb 04 '23 at 15:27