Date: Aug 20, 2013 10:20 AM
Author: Tony Kittler
Subject: if statement

I have these two codes in my project ;
a= egnrm_stack(k-1,1);
b= egnrm_stack(k,1);

When I checked the values of them, I saw that
a =

0.0188

b =

0.0188

My codes are ;

if a==b
p=1
else
p=0
end

But the result of this block returns as;

p =
0

As you see the result must be p=1, since a is equal to b.
Could you please help me, where is the mistake ? Why is the result as p=0 ?