【发布时间】:2017-09-15 15:44:52
【问题描述】:
我在创建单元格时尝试设置百分比格式,这是我的代码。
new Data.CellData
{
UserEnteredValue = new Data.ExtendedValue
{
FormulaValue = "=(B2/C2)-1"
},
EffectiveFormat = new Data.CellFormat
{
NumberFormat = new Data.NumberFormat
{
Pattern = "00.0%",
Type = "NUMBER"
}
}
}
显示的当前值为“-0.2488570834”,我需要这个“-24.88%”。我错过了什么?
提前致谢。
【问题讨论】:
标签: c# .net google-sheets-api