Difference between Double and Extended

Write here if you have problems with your Pascal source code

Moderator: Board moderators

Post Reply
Eric
Learning poster
Posts: 83
Joined: Wed Sep 11, 2002 6:28 pm
Location: Hong Kong

Difference between Double and Extended

Post by Eric »

Can anyone tell me what is the difference between Double and Extended?
I get WA with Extended in p10509 but Accepted with Double.
Observer
Guru
Posts: 570
Joined: Sat May 10, 2003 4:20 am
Location: Hong Kong

Post by Observer »

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.
7th Contest of Newbies
Date: December 31st, 2011 (Saturday)
Time: 12:00 - 16:00 (UTC)
URL: http://uva.onlinejudge.org
ACoimbra
New poster
Posts: 14
Joined: Thu Apr 10, 2003 1:59 pm
Location: Coimbra, Portugal
Contact:

extended

Post by ACoimbra »

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 :o
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]
Post Reply

Return to “Pascal”