Generalised floating point multiplication: Difference between revisions
Generalised floating point multiplication (view source)
Revision as of 10:51, 17 January 2020
, 4 years ago→{{header|Phix}}: bugfix
m (→{{header|Phix}}: bugfix) |
|||
Line 1,431:
integer da = find(a[i],alphabet),
db = find(b[i],alphabet),
c = compare(
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)
see [note 1] regarding decimal/ternary input, just above.
{{out}}
<pre>
|