Paste from Excel into C# app, retaining full precision
I have data in an Excel spreadsheet with values like this: 0.69491375 0.31220394 The cells are formatted as Percentage, and set to display two decimal places. So they appear in Excel as: 69.49% 31.22% I have a C# program that parses this data off the Clipboard . var dataObj = Clipboard.GetDataObject(); var format = DataFormats.CommaSeparatedValue; if (dataObj != null && dataObj.GetDataPresent(format)) { var csvData = dataObj.GetData(format); // do something } The problem is that csvData contains the display values from Excel, i.e. '69.49%' and '31.22%'. It does not contain the full precision