I have a currency field inside a SharePoint List. When I retrieve that field the result type is "double". As it should be according to the documentation.
But we all learned that double is a bad choice when dealing with currency values. But how to deal with it in csom sharepoint? Currently I cast all currency-values to decimal before doing any operations:
decimal lotsofcash=(decimal)(double)listItem.Value; lotsofcash+=124.56; listItem.Value=lotsofcash;
Is there a smarter way to do this? Is there a better fieldtype?