07-25-2008 8:59 AM
hi SAP Technical Guru,
PLS suggest me what is fixed point arithmatic at report attrubutes.
regards,
07-25-2008 9:00 AM
HI
For calculations in business applications, use packed numbers. The program attribute Fixed point arithmetic affects calculations using packed numbers.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb333d358411d1829f0000e829fbfe/content.htm
Regards
Pavan
07-25-2008 9:01 AM
hi,
check this standard documentation for fixed point arithmatic
If you mark this checkbox, all caluculations in the program will use fixed point arithmetic.
If you do not, packed numbers (ABAP/4 type P, Dictionary types CURR, DEC or QUAN) will be treated as integers when they are used in assignments, comparisons and calculations, irrespective of the number of decimal places defined. Intermediate results in arithmetic calculations will also be rounded to the next whole number. The number of decimal places defined is only taken into account when you output the answer using the WRITE statement
07-25-2008 9:01 AM
Look at the help on fixed point arithmetic ..
If you mark this checkbox, all calculations in the program will use
fixed point arithmetic.
If you do not, packed numbers (ABAP/4 type P, Dictionary types CURR, DEC
or QUAN) will be treated as integers when they are used in assignments,
comparisons, and calculations, irrespective of the number of decimal
places defined. Intermediate results in arithmetic calculations will
also be rounded to the next whole number. The number of decimal places
defined is only taken into account when you output the answer using the
WRITE statement.
07-25-2008 9:03 AM
Hi,
Normally, the attribute for fixed point arithmetic is set with newly created programms. If you switch this attribute off, the DECIMALS -specification is taken into account on output, but not when making calculations. In this case, the programmer must take care that the decimal point is in the right place by multiplying or dividing (COMPUTE ) by the appropriate power of ten.
When making calculations, you should always have fixed point arithmetic switched on. Then, even intermediate results (division!) are calculated with the greatest possible accuracy (31 decimal places).
To decide whether the fixed point type P or the floating point type F is more suitable, see also "ABAP/4 number types ".
Refer to this link for further info:
http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb333d358411d1829f0000e829fbfe/frameset.htm
Regards,
Shailaja
07-25-2008 9:03 AM
hiiii
refer to follwing link for Fixed Point arithmetic
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb333d358411d1829f0000e829fbfe/content.htm
you can try following example & can know some better way.
data:
v1 type p decimals 2,
v2 type p decimals 2,
v3 type p decimals 2.
v1 = 6.
v2 = 3.
v3 = v1 / v2.
write: v3.
Execute this small code with Fixed Point Arithmetic & check result..then Execute this code without Fixed Point Arithmetic & check result..you can select fixed point arithmetic from any program..just from Menu->Go to-Attributs...there will be a checkbox.
regards
twinkal
07-25-2008 9:04 AM
Hi
In Fixed Point Arithmatic, By Default the number is formatted as a DECIMAL and displayed unless specified (Type I or F).
Hope this would help you.
Murthy
07-25-2008 9:04 AM
hi
In fixed point arthematic is the internal way to handal tha packed number .
While creating an program if fixed point arthematic is not checked ,
packed numbers (ABAP/4 type P, Dictionary types CURR, DE
or QUAN) will be treated as integers when they are used in assignments,
comparisons, and calculations, irrespective of the number of decimal
places defined. Intermediate results in arithmetic calculations will
also be rounded to the next whole number. The number of decimal places
defined is only taken into account when you output the answer using the
WRITE statement.
Cheers
Snehi