5
Answers

Trim Decimal Places

Jay

Jay

14y
15.1k
1

Hi Everyone,

I was wondering if someone could help me.  I am recieving prices from a XML steam and I am wondering how to strip off some decimal places.

The price I get back looks like 12.5210125 and I only want to keep 2 decimal places.  How can I strip off the extra decimal places so I get 12.52   Could I use a Trim of a Substring method?

Thanks in advance.

Jay

Answers (5)