Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Using data type DEC.

Former Member
0 Kudos

Hi,

Am using the Data type DEC to display values for my database table. I have to display values like 1234.5678,but inspite of giving decimal places to 4 I am getting those values as 1234,5678.Why is that ?

What to change.

1 ACCEPTED SOLUTION

Former Member

Hi,

Goto Menu SYSTEM -> USER PROFILE -> OWN DATA then click on defaults tab and check the Decimal Notation field. Change the value as your wish from the list of drop down values. Then save it.

Rgds,

Bujji

2 REPLIES 2

Former Member
0 Kudos

Try this

data: val type p decimals 5 .

val = '1000.888'.

write:/ val.

so you should use packed decimal

Former Member

Hi,

Goto Menu SYSTEM -> USER PROFILE -> OWN DATA then click on defaults tab and check the Decimal Notation field. Change the value as your wish from the list of drop down values. Then save it.

Rgds,

Bujji