Long multiplication: Difference between revisions

m
→‎string: added a comment
(→‎{{header|Phix}}: added string a builtin versions)
m (→‎string: added a comment)
Line 4,029:
if b[1]='-' then {bSign,b} = {not bSign, b[2..$]} end if
string res = repeat('0',length(a)+length(b))
--
-- Note that i,j,k are used as negative indexes, working
-- from the right hand least significant digit leftwards.
--
for i=1 to length(a) do
integer j=1, k=i, c=0
7,820

edits