Re: [Dev-C++] numerical error in a simple program
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Luís B. <lf...@ya...> - 2003-09-03 10:30:07
|
--- Neszt Tibor <ne...@ss...> wrote: > Instead of: > > > printf( " a = %15.15f\n", a ); > > Try: > printf( " a = %15.10f\n", a ); > > :-) > > Tibor > It's not a question of output. Numerically the error is still there: ********************************* printf( "(int)a = %d\n", (int)a); ********************************* output -> 3332 ===== +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Luís Filipe Delgado Brás Eng.º Civil Porto - Portugal email: lf...@ya... http://www.fotopt.net/autor.asp?autor=2637 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |