[dssslist] Arithmetic error

Subject: [dssslist] Arithmetic error
From: Alberto Martínez Pascual <alberto.martinez@xxxxxxxxxxxxxx>
Date: Thu, 07 Apr 2005 16:00:24 +0200
Hello everybody!

	I obtained today an erroneous result in an arithmetic operation using
DSSSL. I began the typical prozess to minimize the field where the error
appears, and the result was a surprise for me...

	The result of this piece of code:
;****************************************************************************
******************

   (make sequence
      (if (< (- 7.1 7) 0.1)
         (literal (string-append (number->string (- 7.1 7)) " is less as
0.1"))
         (literal (string-append (number->string (- 7.1 7)) " is NOT less
as 0.1"))
      )
      (literal " BUT: ")
      (if (< (- 7.2 7) 0.2)
         (literal (string-append (number->string (- 7.2 7)) " is less as
0.2"))
         (literal (string-append (number->string (- 7.2 7)) " is NOT less
as 0.2"))
      )
   )
;****************************************************************************
******************


is this:


0.1 is less as 0.1 BUT: 0.2 is NOT less as 0.2


Do you know something about this? Could it be because of my version of Jade?



I thank you all in advance for your help. Have a nice day!


Alberto Martmnez Pascual

Current Thread