What does ~ and ~= mean?

I noticed that the approximately symbol (‘~’) is an operator in codea. What does it do or what is it used for?

I don’t know about ~ alone, but ~= means not equal to.

I thought for a minute it was an “approximately equal” operator.

Nah but I can certainly see how you thought that.

@Archimedes - I suggest you have a read of the Lua manual

@Archimedes the ~ on its own is the bitwise “not” operator. It will return the inverted bits of an integer. This is new in Lua 5.3.