Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

Get the absolute value in razor view.

Hi Experts,

I have this code in razor view.

<div>@item.PriceAdjustment@T("% off")</div>

Open in new window

How do I get the absolute value of @item.PriceAdjustment? If 

@item.PriceAdjustment is  -ve  # I want the +ve value.


Thanks in advance!

ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial