Skip to main content
1 of 3
Submits
  • 3.3k
  • 3
  • 23
  • 37

"float;#22.0000000000000" Number Returned From CAML Query

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?

Submits
  • 3.3k
  • 3
  • 23
  • 37