# 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.

-