Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ private String getNumericStringValue(Cell cell, PropertyDefinition propertyDefin
if (propertyDefinition != null && propertyDefinition.getType() == PropertyDefinitionType.BOOLEAN) {
return ConvertUtil.convertToString((int) cell.getNumericCellValue());
}
// セルタイプがNUMERICで、整数値の場合でも小数点がつく(100が100.0になる等)ので対応
if (propertyDefinition != null && propertyDefinition.getType() == PropertyDefinitionType.INTEGER) {
// 入力値が整数値の場合のみ整数値を文字列に変換する
double value = cell.getNumericCellValue();
if (value == (long) value) {
return ConvertUtil.convertToString((long) value);
}
}

// 上記以外は数値を返す
return ConvertUtil.convertToString(cell.getNumericCellValue());
Expand Down