tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
41 stars 36 forks source link

Incorrect description of the division operator (`/`) #178

Closed anton-trunov closed 2 months ago

anton-trunov commented 3 months ago

used for integer division of two values, which truncates towards zero

/ does not truncate towards zero, it actually behaves like the floor function, i.e. it truncates towards zero for the positive results and away from zero for the negative results.