diff --git a/src/ProgressBar.js b/src/ProgressBar.js index 0b981070c8..d80e92b174 100644 --- a/src/ProgressBar.js +++ b/src/ProgressBar.js @@ -27,7 +27,8 @@ const ProgressBar = React.createClass({ }, getPercentage(now, min, max) { - return Math.ceil((now - min) / (max - min) * 100); + let roundPrecision = 1000; + return Math.round(((now - min) / (max - min) * 100) * roundPrecision) / roundPrecision; }, render() {