Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can u print decimals in type N? What is difference between float and packed data type?

0
Posted

Can u print decimals in type N? What is difference between float and packed data type?

0

Ans No, we cannot print decimals in type N because decimal places are not permitted with N data type. Float Data Type: It cannot be declared in Parameters. Packed Number: It can be declared in Parameters. For e.g. PARAMETERS : A(4) TYPE P DECIMALS 2, B(4) TYPE P DECIMALS 2. DATA : C(4) TYPE P DECIMALS 2. C = A + B. WRITE : / THE SUM IS , C.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123