blob: 82d04e1a7356074b6d62730d94ae97984ceb44a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*-------------------------------------------------------------------------
*
* tstrint.c
* rint() test
*
* Copyright (c) 1999, repas AEG Automation GmbH
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/qnx/Attic/tstrint.c,v 1.1 1999/12/16 01:25:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "os.h"
int main( int argc, char **argv )
{
double x;
if( argc != 2 ) exit( 1 );
x = strtod( argv[1], NULL );
printf( "rint( %f ) = %f\n", x, rint( x ) );
return 0;
}
|