3

I've created custom list via browser, and set one of it's column's type to Number. I've set number of decimals to 0, so I was expecting, that numbers this column will store would be of type integer. However when I retrieve values from list programmatically, all the values in this column are doubles, so if I inserted 1, now the returning value is 1.0.

How can I configure my list, so this column will store numbers as integers ?

I'm using SharePoint 2010.

1 Answer 1

4

The column is a double value, it just won't store any precision. Convert to int to use as an int: c# ToInt32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.