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

-ve values from table.

madan_ullasa
Contributor
0 Likes
782

hi frnds!

any idea as to how to convert -ve values from db tab in our progs to +ve values. I kno that truncating is one way. is ther any other ??

eg..

i have the values : 1 , -6 , 10 , -5..

i want it to be 22 when i add them up..

8 REPLIES 8
Read only

Former Member
0 Likes
751

Hi !

1)

if number < 0.

number = number * ( -1 ).

endif.

2° BEST ONE

why don't you try ABS? (absolute value)

don't forget reward!!!!

Read only

0 Likes
751

hey dude ,

that points column has not appeared...

its 10 for u...

:):):)-

madan

Read only

Former Member
0 Likes
751

Hi

A = abs(A).

B = B + A.

Max

Read only

0 Likes
751

Sorry max ! I'm the faster

Reward reward

Read only

0 Likes
751

hey dude, therz no points column here....

i wanna giv full 10 buddy...

:)-:)-

madan..

Read only

0 Likes
751

damn

when you created the topic you didn't check reward promised!

it would have been my ten first points!

could you create a new one and I'll answer to it and then you give me the rewords just for principle

Read only

0 Likes
751

ok!!!!!!!!!

Read only

0 Likes
751

THANKS YOU