diff --git a/components/number-picker/number-picker.tsx b/components/number-picker/number-picker.tsx index 2a45c6a8fa..8216f6696c 100644 --- a/components/number-picker/number-picker.tsx +++ b/components/number-picker/number-picker.tsx @@ -452,6 +452,8 @@ class NumberPicker extends React.Component const precision = this.getPrecision(); if (precision > 0) { return Number(Number(value).toFixed(precision)); + } else if (precision === 0) { + return Math.floor(value); } return value; }