TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: prexem on July 26, 2008, 08:57:15 PM

Title: A cuestion on FIX.......
Post by: prexem on July 26, 2008, 08:57:15 PM
Reason
Code: [Select]
(fix (/ 1.2 0.2)) gives as result 5 and not 6?
....Thanks.
Title: Re: A cuestion on FIX.......
Post by: CAB on July 26, 2008, 09:21:33 PM
It's an ACAD rounding error:
(rtos (/ 1.2 0.2) 2 16)
"5.999999999999999"

Title: Re: A cuestion on FIX.......
Post by: prexem on July 27, 2008, 07:01:43 PM
Hi CAB:
Really the correct result is 5, FIX does not fail then.
Thank You.