Balanced ternary: Difference between revisions

Content added Content deleted
m (Minor corrections.)
Line 3,877: Line 3,877:


=={{header|Nim}}==
=={{header|Nim}}==
<syntaxhighlight lang="nim">import strformat
<syntaxhighlight lang="nim">import std/[strformat, tables]
import tables


type
type
Line 3,968: Line 3,967:


func `*`*(a, b: BTernary): BTernary =
func `*`*(a, b: BTernary): BTernary =
## Multiply tow BTernary numbers.
## Multiply two BTernary numbers.


var start: BTernary
var start: BTernary