what is a mathematical tilde
The tilde is an operator that does something that youâd normally think wouldnât have any purpose. It is a unary operator that takes the expression to its right performs this small algorithm on it (where N is the expression to the right of the tilde): -(N+1). See below for some samples. 1