|
|
back to boardWhat are the rules of rounding? Posted by Denis 10 Dec 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 |
|
|