8000 NumUtil.divide 存在的问题 · Issue #47 · Sky24n/common_utils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
NumUtil.divide 存在的问题 #47
Open
@LiWenHui96

Description

@LiWenHui96

NumUtil.divide 方法 55BF 当 a/b = 1/3 时,

报错信息如下:

'package:decimal/decimal.dart': Failed assertion: line 27 pos 38: '_rational.hasFinitePrecision': is not true.

image

使用 toDecimal() 方法需要添加 scaleOnInfinitePrecision 参数

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0