Skip to content

Feature: dubbogo 中如何使用 bigdecimal [ok for usage] #109

@echoiron

Description

@echoiron

项目对接时将bigdecimal改为string成功接收(证明不是连接问题)

  1. 改回bigdecimal后使用golang中的float64测试报错

  2. 然后再此时下方包中的Decimal,已经不能接收BigDecimal类型
    import "github.com/shopspring/decimal"

  3. 尝试使用golang中的big类型同样失败

BigDecimal在Java中是常用的精确计算包装类,实际业务不可能改为浮点类型,所以该问题依旧是需要解决的问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions