# How do I get a literal ~ in math mode? [duplicate]

When I write $~$, I get a space. When I write $\~$, I get an error.

I am trying to write ~ to represent the equinumerous relation.

-
See e.g. How can I write tilde ~ in math mode? and its duplicates. –  Torbjørn T. Jan 18 '13 at 22:30
Thanks. I'm not sure why I didn't find that when I was adding the question. –  merlin2011 Jan 18 '13 at 22:35