SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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