Balanced ternary: Difference between revisions

Content added Content deleted
Line 3,619: Line 3,619:
result.add(s[0])
result.add(s[0])


# Add the carry to the result if it is not null.
# Append the carry to the result if it is not null.
if carry != TZ:
if carry != TZ:
result.add(carry)
result.add(carry)