Skip to content

Fixed point should not accept floating point in constructor #21

@slundqui

Description

@slundqui

There are rounding issues when initializing fixed point to floating point:

>>> from fixedpointmath import FixedPoint
>>> FixedPoint(1000e18)
FixedPoint("999999999999999939709.166371603178586112")

Therefore, we should not allow floating points to be passed into fixedpoint constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions