|
|
вернуться в форумWhat are the rules of rounding? Послано Denis 10 дек 2007 02:16 Re: What are the rules of rounding? double dist = ...; printf("%0.0lf\n", dist); writeln(round(dist)); Re: What are the rules of rounding? It's better to use round(ans + 1e-8) to avoid possible tricky tests with answers near x.5 |
|
|