Generalised floating point multiplication: Difference between revisions

m
Line 1,431:
integer da = find(a[i],alphabet),
db = find(b[i],alphabet),
c = compare(ada,bdb)
if c!=0 then return c<0 end if
end for
Line 1,561:
test("hexadecimal", hexadecimal)
test("septemvigesimal", septemvigesimal)</lang>
The printed decimal output is inherently limited to IEEE 754 precision, hence I deliberately limited output (%.16g)
deliberately limited output (%.16g) because it is silly to try and go any higher, whereas the output from b_mul() is actually perfectly accurate,
see [note 1] regarding decimal/ternary input, just above.
whereas the output from b_mul() is actually perfectly accurate, see [note 1] above.
{{out}}
<pre>
7,820

edits