This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Problems with <tgmath.h>
- To: Andreas Schwab <schwab at suse dot de>, dthompsn at cs dot umt dot edu, libc-alpha at sourceware dot cygnus dot com
- Subject: Re: Problems with <tgmath.h>
- From: Kaoru Fukui <k_fukui at highway dot ne dot jp>
- Date: Thu, 16 Dec 1999 22:48:35 +0900
- CC: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>, Andreas Jaeger <aj at suse dot de>
Thanks All.
I get success .
Kaoru
# gcc -o trunc trunc.c -lm
# ./trunc
#trunc(aa):-1.000000
#trunc(bb):1.000000
#
-------------------trunc.c-----------------
#define __ISOC9X_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main () {
double aa=-1.5;
double bb=-1.5;
printf("trunc(aa): %f\n",(double)trunc(aa));
printf("trunc(bb): %f\n",(double)trunc(bb));
return;
}
-------------- end of trunc.c -----------------