Skip to content

toUint256() function should return the number without the floating part #12

Description

@FabienCoutant

Thanks to the great lib.

I just have one remark.
I expected the toUint256() function to return the number rounded as Uint256.
For example: passing 12,3456 I expect to get 12 from toUint256()
To get the right result I have to pass my 12,3456 into the toFelt() function and then the toUint256().

Also we can add what type of rounding we want as param to the function.

Best,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions