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: 

urgent adding amount field

Former Member
0 Kudos

hi all,

i want to add two amount field.

like field1 = 13,500

field2 = 1,000

when i run this program

it leds to short dump.

error shows

Unable to interpret " 13,905.04 " as a number.

how can add these fields having comma separator.

4 REPLIES 4

Former Member
0 Kudos

check the type of field 1 and field 2 the may be chars or the result field may be not an integer

Former Member
0 Kudos

Hello,

You can use the variable by defining it as TYPE P.

Reward if Helpful.

Regards,

Amit G.

former_member181995
Active Contributor
0 Kudos

Bala,

you have to code like this:

field3 = field1 + field2 .

remember in you case resulting set (field3) is not being decleare as type p.

you have to decleare all three fields as type p.

Amit.

Former Member
0 Kudos

U need to replace all ',' with space ... and then add ..