| delorie.com/archives/browse.cgi | search |
| Date: | Fri, 23 Aug 96 11:41:36+010 |
| From: | dngonvo AT ocisi DOT france-telecom DOT fr (Detsoury Ngonvorarath) |
| Message-Id: | <9608231041.AA12852@ocisi.france-telecom.fr> |
| To: | djgpp AT delorie DOT com |
Sir,
Can you solve this problem ?
$ type a01.c
#include <stdio.h>
#include <math.h>
void main(void)
{
printf("%lg\n", sin(1));
}
$ gcc -o a01 a01.c -lm
With djgpp 1.12 under msdos 6.2 :
$ go32 a01
0.8414709848079
With djgpp 2 under win 95, the output is truncated :
$ go32-v2 a01
0.841471
What must I do to get the correct result 0.8414709848079 with djgpp 2 ?
Sincerely yours
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |