well that defeats the purpose of a number comparison then, so if your input is a valid number, it might again not work

var %input = .1 | if (%input == 0.1) echo -a $true

vs.

var %input = .1 | if (x %input == x 0.1) echo -a $true

the second will not fire