I'm running a CAML query to retrieve list items. Some of the columns retrieved contain decimal numbers. The problem is the values coming back from the query look like float;#22.0000000000000
. I just need 22.0
.
I've tried using ToString()
, Decimal.Parse
, casting with (float)
, (double)
, etc. and they all give me exceptions.
How can I resolve this? Why is this even happening?