2007 Feb 28 11:44 AM
Hallow I have a problem in calculation the problem is that I wont to double 2 numbers from different type and the program bring me rounded number
I wont just the real number the types for the 2 numbers is
<b>Score is type N4</b> and <b>weighiting is type DEC3_2</b>
In my program I do like that
LOOP AT score_tab INTO wa_score_tab.
<b>wa_score_tab-score_sum</b> = ( wa_score_tab-weighting * wa_score_tab-score ) / 100.
MODIFY score_tab FROM wa_score_tab TRANSPORTING score_sum .
ENDLOOP.
I wont like
(77*5)/100 = 3.85
And not 4 like I have now.
<b>Which type I have to declare score_sum.</b>
regards
2007 Feb 28 12:16 PM
hi everyone
it help in the program but i have structre that i buield in se11 how i declare it their
becouse type p is erorr.
regardas
hi everyone
it help in the program but i have structre that i buield in se11 how i declare it their
becouse type p is erorr.
regardas
2007 Feb 28 11:46 AM
2007 Feb 28 12:08 PM
hi santosh
it help in the program but i have structre that i buield in se11 how i declare it their
becouse type p is erorr.
regardas
2007 Feb 28 11:46 AM
2007 Feb 28 11:51 AM
Use Packed decimal type P and u can limit the how many decimal place u want.
Data: sum type P decimals 2.
2007 Feb 28 11:52 AM
declare it as TYPE P DECIMALS 2
and make sure that in the attributes(in menu Goto-->Attributes) of the program fixed point arithmetic is checked
2007 Feb 28 11:53 AM
Hi,
Define wa_score_tab-score_sum as the <b>same type of weighiting</b>.
U will get the correct output.
Reward if this helsp.
2007 Feb 28 12:16 PM
hi everyone
it help in the program but i have structre that i buield in se11 how i declare it their
becouse type p is erorr.
regardas
2007 Feb 28 12:31 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |