Re: [Dev-C++] Dev-cpp-users Digest, Vol 23, Issue 8
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <Geo...@ao...> - 2008-04-17 14:55:30
|
Try this
#include <iostream>
#include <iomanip>
float x=1;
int main(int argc, char *argv[])
{
std::cout << std::setprecision(1) << "1/3 =" << x/3 << "\n";
printf("1/3 = %.9f \n", x/3);
system("PAUSE");
return EXIT_SUCCESS;
}
>From GeorgeAPerry
**************Need a new ride? Check out the largest site for U.S. used car
listings at AOL Autos.
(http://autos.aol.com/used?NCID=aolcmp00300000002851)
|