int sign( int x ) { int n, m; if(x < 0) { m = -1; } else if(x == 0) { m = 0; } else { m = 1; } return m; }