Is ans is 2.

i found that  a1 = .9999999999999999999
                   a2 = .999999999999999999


________________________________
From: Stefan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, November 18, 2008 10:42:52 PM
Subject: [development-axapta] Calculation error in AX3.0SP3


Hi,

I have the following code fragment:

real a1,a2,a3;

a1=8.0/24.0* 3.0;
a2=8.0/24.0* 3.0;

a3=a1+a2;

print a3;


In AX3.0SP3 I get 1.0 as a result which is definitely wrong. Is this a
known error? What is the extent of it - under what circumstances does
this happen?

Stefan

    


      

[Non-text portions of this message have been removed]

Reply via email to