Link to home
Start Free TrialLog in
Avatar of XK8ER
XK8ERFlag for United States of America

asked on

vb.net money digit

hello there,
how can I convert this string into money..

1516.49

into

$15.16
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

txt.Text = Decimal.Round(yoursting, 2).ToString("f2")
Dim result As String = decimalValue.ToString("C")

Open in new window


Where "decimalValue" is of type Decimal.
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada 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
Ha! I missed that the decimal point was being shifted to the left. An interesting requirement indeed  = )