Balanced ternary: Difference between revisions
Content added Content deleted
m (→{{header|Nim}}) |
|||
Line 3,619: | Line 3,619: | ||
result.add(s[0]) |
result.add(s[0]) |
||
# |
# Append the carry to the result if it is not null. |
||
if carry != TZ: |
if carry != TZ: |
||
result.add(carry) |
result.add(carry) |