2006 Sep 01 6:09 PM
guys,
how i can declare the variable for this.
Total type (2 Dec positions, decimal embedded)
regards,
vijay
guys,
how i can declare the variable for this.
Total type (2 Dec positions, decimal embedded)
regards,
vijay
2006 Sep 01 6:12 PM
Hi Vijay,
Declare variabe of TYPE P.Specify number of decimals after DECIMALS clause.
If you want to declare a variable with 2 decmilas then declare like below.
<b>DATA V_PRICE TYPE P DECIMALS 2.</b>
DATA V_PRICE TYPE P DECIMALS 2 VALUE '135.22'.
WRITE V_PRICE. --->135.22
Thanks,
Vinay
2006 Sep 01 6:12 PM
2006 Sep 01 6:14 PM
Hi,
Declare it as :
Data : Total type P Decimals 2.
Best regards,
Prashant
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |