Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How can I access long double data type in a C++ program on aCC compiler on HP-UX.
Sample code :
#include <stdio.h>
#include <stdlib.h>
int main()
{
long double l1 = 32.12345678 ;
long double l2 = 20.87654358 ;printf ("Result l1 : %Le\n" , l1);
printf ("Result l2 : %Le\n" , l2);long double l3 = l1 * l2;
printf ("Result : %Le\n" , l3);long double l4 = l1 / l2;
printf ("Result2 : %Le\n" , l4);
return 0;
}I tried format specifiers like '%Le' , '%lf'.. but no fruitful results..
Plz suggest proper one..
Shamim Ahmad

![]() |
print columns from files ...
|
Awk Help
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |