eval_sign function

Evaluate the sign of data