Can anyone tell me what is the difference between Double and Extended?
I get WA with Extended in p10509 but Accepted with Double.
Difference between Double and Extended
Moderator: Board moderators
It's glad to know that you've got an ACC in this qq.
Now plz help me!!! I'm getting WA in this qq. Could you share with me your algorithm? Well, I think my algorithm looks fine, but......
Thx in advance.
Now plz help me!!! I'm getting WA in this qq. Could you share with me your algorithm? Well, I think my algorithm looks fine, but......
Thx in advance.
7th Contest of Newbies
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
extended
Well, try to debug your code with extended and with double.
It may seem strange, but same times I got precision errors with extended.
For example, same of the last digits were transformed in zeros, I don't know why, but this happened
Also Check http://www.freepascal.org/docs-html/pro ... -1440008.2 as they say:
For all other processors which support floating point operations, the extended type is a nickname for the type which supports the most precision, this is usually the double type. On processors which do not support co-processor operations (and which have the {$E+} switch), the extended type usually maps to the single type.
Check single in http://www.freepascal.org/docs-html/ref ... 7-300003.1[/url]
It may seem strange, but same times I got precision errors with extended.
For example, same of the last digits were transformed in zeros, I don't know why, but this happened
![:o](./images/smilies/icon_eek.gif)
Also Check http://www.freepascal.org/docs-html/pro ... -1440008.2 as they say:
For all other processors which support floating point operations, the extended type is a nickname for the type which supports the most precision, this is usually the double type. On processors which do not support co-processor operations (and which have the {$E+} switch), the extended type usually maps to the single type.
Check single in http://www.freepascal.org/docs-html/ref ... 7-300003.1[/url]