Skip to content

eth/conversion.go treats in floats when decimal would be lossless #11

@jshufro

Description

@jshufro

Various utility functions in this file convert between big.Int and float64... There's prefectly usable tooling in go-ethereum that defines a Decimal256 type, which would allow us to parse eth values losslessly (eg 123456789123456.123456789012345678) without using float64, which creates precision loss https://go.dev/play/p/xh06-b8xldG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions