Hi, I'm checking the problem with the 19.26 example. At this moment I don't know what happen with Ciao Prolog, but the correct value is the given by the C language.
I made a test, with the next results:
19.26 converted to IEEE 64 bits is: 1 .0011010000101000111101011100001010001111010111000011(in base 2) * 2^4 (you can see that in http://babbage.cs.qc.edu/courses/cs341/IEEE-754.html)
calculating this value in base 10 with about 50 decimal digits in bc: 19.260000000000001563194018672220408916473388671875
using printf("\nX = %.20lf\n", 19.26) in GNU C language gives: X = 19.26000000000000156319
using X is 19.26 in Ciao Prolog 1.8 gives: X = 19.2600000000000029
Obviously, the prolog value is wrong.
I hope that this remark help to understand the problem,
Edison. ============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------