title: Changing DataType of cell to Double
body: <p>I'm using OpenXML to create Microsoft Excel file. I'm trying to insert a double type variable (Example : 4.987456789) into the Excel using</p>
  
  <pre><code>Cell cell = new Cell()
  {
      CellReference = "A2",
      DataType = CellValues.String,
      CellValue = new CellValue(Convert.ToString(value))
  };
  </code></pre>
  
  <p>But, when the cell is being made, it's in text form and Excel says "The number in this cell is formatted as text or preceded by an apostrophe." How can format the cell to insert double?</p>
  
  <p>Edit : 
  Sorry, It's double? type and I follow this <a href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.cellvalue%28v=office.14%29.aspx" rel="nofollow">tutorial</a></p>