algorand / algorand/pyteal

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

Offen
#184 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
external contribution Team Scytale
Vorherrschende Sprache
Python
Sterne
288
Forks
138
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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 https://github.com/algorand/pyteal/issues/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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.