$eql number problem

Anyone know why

$if($eql(0,$num(0,2)),Y,N)

prints N, not Y?

A workaround is

$if($eql(0,$add(0,$num(0,2))),Y,N)

Anyone know why $if($eql(0,$num(0,2)),Y,N) prints N, not Y?
$if($eql($num(0,2),$num(0,2)),Y,N) prints Y

And $if($eql($num(0,1),$num(0,2)),Y,N) prints N.

0 and 00 is not the same string

Sounds like a proper numeric compare is needed.