我正在学习c ++,我需要的不是小数的int类型值。有人吃吗?
我尝试了dec
和decimal
,但是它们不起作用。
这是我现在的代码:
dec Number = 31;
感谢您查看我的问题!
答案 0 :(得分:0)
您可以使用function ResetPmRowmacro() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getCurrentCell().offset(5, 3).activate();
spreadsheet.getActiveRangeList().clear({contentsOnly: true,
skipFilteredRows: true});
spreadsheet.getCurrentCell().offset(0, 10).activate();
spreadsheet.getCurrentCell().setValue('Not Started');
spreadsheet.getCurrentCell().offset(0, 1).activate();
spreadsheet.getActiveRangeList().clear({contentsOnly: true,
skipFilteredRows: true});
spreadsheet.getCurrentCell().offset(0, 1).activate();
spreadsheet.getActiveRangeList().clear({contentsOnly: true,
skipFilteredRows: true});
spreadsheet.getCurrentCell().offset(0, 1).activate();
spreadsheet.getActiveRangeList().clear({contentsOnly: true,
skipFilteredRows: true});
spreadsheet.getCurrentCell().offset(0, 1).activate();
spreadsheet.getActiveRangeList().clear({contentsOnly: true,
skipFilteredRows: true});
spreadsheet.getCurrentCell().offset(0, 1).activate();
spreadsheet.getActiveRangeList().clear({contentsOnly: true,
skipFilteredRows: true});
spreadsheet.getCurrentCell().offset(0, -18).activate();
spreadsheet.getCurrentCell().offset(0,27).
copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
}
或double
希望这会有所帮助!