Yep. If you're solving a problem where rounding could be an issue with
floating point numbers, you have to be lucky (or very skilled) to implement
it in a way that will work.

On Tue, May 1, 2018, 16:43 Xiongqi ZHANG, <[email protected]> wrote:

> To solve the problem CORRECTLY, you need infinite precision in doing
> floating arithmetic.
>
> Or you should just use integers to avoid all the precision issue.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/450abbe9-9c31-4256-81fa-df462ad9698a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAHaiWHMJezi%3DfkZOkR8gTJ51kcxk5L_5ahiWKtWQp7Ve14bwjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to