Skip to content

我该如何保证获取数字的精度 #7846

@workCleaner

Description

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

Version

1.7.3

Environment

win10、127.0.6533.72(正式版本)(64 位)、vue2

Reproduction link

Edit on CodeSandbox

Steps to reproduce

当获取表单内容、表单验证时获取一个带有数字精度的数字输入框。

What is expected?

正确的保留数字精度

What is actually happening?

获取的表单值会被处理掉数字精度


我想要知道如何处理这种问题。比如在获取到相应的值之后把对应的数字进行转换成字符串保留精度 还是其他的

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