[github-487] Round up seconds in CellElapsedFormatter. Thanks to Anthony Schott. This closes #487

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2023-07-24 10:12:46 +00:00
parent fa8650fbe3
commit cd2dcd3940
2 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class CellElapsedFormatter extends CellFormatter {
val = elapsed / factor; val = elapsed / factor;
else else
val = elapsed / factor % modBy; val = elapsed / factor % modBy;
if (type == '0') if (type == '0' || type == 's')
return Math.round(val); return Math.round(val);
else else
return (long) val; return (long) val;