How to hide negative sign before a number in java

Joined
Aug 5, 2008
Messages
1
Reaction score
0
i want to hide negative sign before number.But that number should behave like negative
It means my reqiuirement is

like -4 and 2 are two numbers.
i want to add these two numbers.
-4+2 becomes -2..


i want negative sign not to be displayed.
4+2 should be -2.
please tell me the solution
for your information...Abs function isnot the solution as in this number becomes positive.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top