Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to hide negative sign before a number in java

Reply
Thread Tools

How to hide negative sign before a number in java

 
 
Ekta Midha Ekta Midha is offline
Junior Member
Join Date: Aug 2008
Posts: 1
 
      08-05-2008
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: Adding a positive number and a negative number MRAB Python 2 01-31-2009 02:41 AM
Adding a positive number and a negative number EK Python 0 01-30-2009 04:13 AM
J sign instead of ? sign Harold Potter esq. Computer Support 5 04-16-2005 02:19 PM
Negative setup and Negative hold prem_eda VHDL 5 10-11-2004 12:14 PM



Advertisments