Skip to content

The precision conversion is incorrect when inputNumber is a negative number #4886

@AsukaShikinamiLangley

Description

@AsukaShikinamiLangley
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.7

Environment

"ant-design-vue": "1.7.8", "moment": "2.22.1", "vue": "2.5.17"

Reproduction link

Edit on CodeSandbox

Steps to reproduce

设置精度为0, 输入-1.5, 查看结果

What is expected?

-2

What is actually happening?

-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions