ack/lang/a68s/liba68s/entier.c

14 lines
262 B
C
Raw Permalink Normal View History

1988-10-04 13:41:01 +00:00
int ENTIER(statlink, a)
int *statlink ;
register double a ;
{
int n ;
n = ( int ) a ;
return( n < 0 && ( double ) n != a ? n - 1 : n ) ;
}
int ROUN(statlink,a)
int *statlink ;
register double a ;
{ return(ENTIER(statlink, a+0.5)) ;
}