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

data type

Former Member
0 Likes
750

i was searching for what data type to keep for amount. ( money).

i declared it as 'i', but does this take values after decimal

like

5000.45

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
732

declare it type p decimals 2 where 2 is the number of places after decimal.

U can also declate it type of any data element having CURR as the domain.

Reward points if helpful

7 REPLIES 7
Read only

Former Member
0 Likes
732

hi,

no it wont take.

declare it as type 'p'

Read only

Former Member
0 Likes
733

declare it type p decimals 2 where 2 is the number of places after decimal.

U can also declate it type of any data element having CURR as the domain.

Reward points if helpful

Read only

Former Member
0 Likes
732

Hi,

u can use type PACK with DECIMAL 2.

Ex: data: a1 type p decimal 2.

Revert back if any issues,

Reward with poinst if helpful.

Regards,

Naveen

Read only

Former Member
0 Likes
732

Hi

Type 'i' will not take decimal values.

You have two options..One is

Data: d type f.

OR

Data d type P decimals 3..

Both of this will fullfill your requirment

Reward All Helpfull Answers.

Read only

Former Member
0 Likes
732

CURR

Read only

0 Likes
732

Use type p decimals 2

or use CURR

Read only

Former Member
0 Likes
732

Curr + cuky.

regards

prabhu