The Tilde operator works so, that it takes the number of decimal places in the inputs as a reference of the tolerance in which these two values should be similar.

The formula for the tolerance is max number between (10^-(number of decimals in input 1), 10^-(number of decimals in input 2))

So if we take the above example the numbers the tolerance should be 10^-2 or 0.01.

Because the difference of these two numbers is bellow 0.01, then the statement is true