Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toFixed方法处理负数时,仍然可能出现错误 #47

Open
Congb19 opened this issue Nov 17, 2022 · 0 comments
Open

toFixed方法处理负数时,仍然可能出现错误 #47

Congb19 opened this issue Nov 17, 2022 · 0 comments
Labels

Comments

@Congb19
Copy link

Congb19 commented Nov 17, 2022

可复现的链接:

https://codesandbox.io/embed/vxe-table-3-x-vue-2-6-wen-ti-yan-shi-forked-2g1gk6?fontsize=14&hidenavigation=1&theme=dark

问题描述与截图:

toFixed方法处理负数时,可能出现错误。

例子:

  let k = -3007577.495
  XEUtils.toFixed(k, 2)

结果为 -3007577.49,正确应该为 -3007577.50

期望的结果:

-3007577.50

操作系统:

windows10

浏览器版本:

chrome 107.0.5304.107

@Congb19 Congb19 added the bug label Nov 17, 2022
@Congb19 Congb19 changed the title toFixed方法处理负数时,可能出现错误 toFixed方法处理负数时,仍然可能出现错误 Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant