Thread View: mod.computers.gould
1 messages
1 total messages
Started by klimbal
Fri, 22 Nov 1985 17:49
LIBPC TRUNC.c
Author: klimbal
Date: Fri, 22 Nov 1985 17:49
Date: Fri, 22 Nov 1985 17:49
17 lines
925 bytes
925 bytes
In order for trunc to work correctly on the 9080 the return value
must first be cast to a float and then to a long.
/* Copyright (c) 1979 Regents of the University of California */
static char sccsid[] = "@(#)TRUNC.c 1.2 3/7/81";
long
TRUNC(value)
double value;
{
return (long)(float)(value);
}
--Phil
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads