piku
piku

Reputation: 613

Not showing exact values in addition in AX

static void vall(Args _args)
{
real value1        =  90077404192159.75;
real value2        =  90077254918474.73;

real valueSum;

 ;

 valueSum = value1 + value2;

    error(strFmt("%1", valueSum));    // returns 180,154,659,110,634.50
// result should be 180,154,659,110,634.48;

 }

Upvotes: 1

Views: 74

Answers (1)

Nick Hulber
Nick Hulber

Reputation: 36

The range of reals is -(10)127 to (10)127 with a precision of 16 significant digits.

http://msdn.microsoft.com/en-US/library/aa878630.aspx

Upvotes: 2

Related Questions