xref: /csrg-svn/usr.bin/pascal/libpc/TRUNC.c (revision 40865)
1*40865Sbostic /*-
2*40865Sbostic  * Copyright (c) 1979 The Regents of the University of California.
3*40865Sbostic  * All rights reserved.
4*40865Sbostic  *
5*40865Sbostic  * %sccs.include.redist.c%
6*40865Sbostic  */
71711Smckusick 
8*40865Sbostic #ifndef lint
9*40865Sbostic static char sccsid[] = "@(#)TRUNC.c	1.3 (Berkeley) 04/09/90";
10*40865Sbostic #endif /* not lint */
111711Smckusick 
123037Smckusic long
131711Smckusick TRUNC(value)
141711Smckusick 
151711Smckusick 	double	value;
161711Smckusick {
171711Smckusick 	return (long)(value);
181711Smckusick }
19