Skip to content

ABI: Extended math support - signed integers and fixed point numbers #184

@jasonpaulos

Description

@jasonpaulos

Summary

Add support for the following numeric types to PyTeal:

  • signed integers (using two's complement)
  • signed fixed point numbers
  • unsigned fixed point numbers

Scope

Ideally this would replicate most of the feature described in #181 for these new types.

Note that signed integers and signed fixed point numbers are not ARC-4 ABI compliant, so we should not allow public ABI methods to accept arguments or have a return value that uses these types. But they could be added to the ABI in the future, and in any case they are still useful internally.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions