简体   繁体   中英

How to Read percentage value with sign(%) from Excel file using ClosedXml

Input: Cell Value=6.25%;

var Value= ws1.Cell(rowNum, collNum).Value.ToString();

Output: 0.0625 Expected Output: 6.25%

我通过使用.Value插入的.GetFormattedString()找到解决方案

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM