Arithmetic operations in Teal (PyTeal) - General - Algorand

Arithmetic operations in Teal (PyTeal)

post by cotunho on May 11, 2021

Hi everybody,

I’m writing a Smart Contract in PyTeal, in which I do some arithmetic operations that could return decimal and negative values.

So, what is the variables’ content have negative or decimal values?

post by fabrice on May 11, 2021

TEAL only supports unsigned integers (i.e., non-negative integers).

You need to design your code so that it does not require explicitly negative and decimal values.

This depends on your exact use case.