diff --git a/packages/amis-ui/src/components/NumberInput.tsx b/packages/amis-ui/src/components/NumberInput.tsx index 13d31211fe5..c3837e80ece 100644 --- a/packages/amis-ui/src/components/NumberInput.tsx +++ b/packages/amis-ui/src/components/NumberInput.tsx @@ -173,7 +173,9 @@ export class NumberInput extends React.Component { */ if (!isBig && getNumberPrecision(value) !== precision) { const multiplier = Math.pow(10, precision); - const truncatedValue = Math.trunc(value * multiplier) / multiplier; + const truncatedValue = + Math.trunc(getMiniDecimal(value).multi(multiplier).toNumber()) / + multiplier; value = getMiniDecimal(truncatedValue).toNumber(); }