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

Negativ Amount to String convert

Former Member
0 Likes
1,517

hi all

how can i convert a negative amount(example 94.34-) to string. It should after convert like that -94.34.

i want give the amount out in excel, with DOI......

I hope you know, what i mean.....

thx very much

kostonstyle

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,410

how can i catch up the dump CONVT_NO_NUMBER?

hi all

how can i convert a negative amount(example 94.34-) to string. It should after convert like that -94.34.

i want give the amount out in excel, with DOI......

I hope you know, what i mean.....

thx very much

kostonstyle

3 REPLIES 3
Read only

Former Member
0 Likes
1,410

Concatenate '-' and absolute value of the negative value.

Thanks

Rakesh

Read only

Former Member
0 Likes
1,411

how can i catch up the dump CONVT_NO_NUMBER?

Read only

0 Likes
1,410

There's no need to use ABS and check the value to determine whether or not to concantenate. One option is to write the value to your character like field then use CLOI_PUT_SIGN_IN_FRONT to move the sign position - it works whether the value is positive or negative...