Skip to content

Big number support unclear with arithmetic operations #6281

@tsandall

Description

@tsandall

The arithmetic operators use the go math/big library under the hood however we seem to be running into loss-of-precision problems with several test cases. These cases from the rego-cpp implementation fail against topdown: https://raw.githubusercontent.com/microsoft/rego-cpp/main/tests/bigint.yaml

We should either fix topdown to support arithmetic on big numbers or clearly document what's supported (vs what is not.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions