i got one scenario that i have got 2 amounts
one is with value 200.00 and other value 100.00-
so now i have to convert 100.00- to 100.00
and comapre that out of 200 & 100 which is greater.
then calculate the profit & loss by subtracting these amount.
u may be confused that why can't we comapre directly 200 & 100-
directly . but let me tell u that it will be problem bcoz if we will subtract 100- from 200 then we will get 300 which will be wrong.
so my requirement is to relace the neagtive sign from the amount
then only compare these two amounts and then only calculate profit & loss.