Application Development and Automation 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: 
Read only

Using data type DEC.

Former Member
0 Likes
8,560

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
Read only

Former Member
3,463

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
Read only

Former Member
0 Likes
3,463

Try this

data: val type p decimals 5 .

val = '1000.888'.

write:/ val.

so you should use packed decimal

Read only

Former Member
3,464

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