<s>
In	O
computer	B-General_Concept
science	I-General_Concept
,	O
the	O
double	B-Algorithm
dabble	I-Algorithm
algorithm	I-Algorithm
is	O
used	O
to	O
convert	O
binary	O
numbers	O
into	O
binary-coded	O
decimal	O
(	O
BCD	O
)	O
notation	O
.	O
</s>
<s>
It	O
is	O
also	O
known	O
as	O
the	O
shift-and-add-3	B-Algorithm
algorithm	I-Algorithm
,	O
and	O
can	O
be	O
implemented	O
using	O
a	O
small	O
number	O
of	O
gates	O
in	O
computer	O
hardware	O
,	O
but	O
at	O
the	O
expense	O
of	O
high	O
latency	O
.	O
</s>
<s>
Suppose	O
the	O
original	O
number	O
to	O
be	O
converted	O
is	O
stored	O
in	O
a	O
register	B-General_Concept
that	O
is	O
nbits	O
wide	O
.	O
</s>
<s>
Then	O
partition	O
the	O
scratch	O
space	O
into	O
BCD	O
digits	O
(	O
on	O
the	O
left	O
)	O
and	O
the	O
original	O
register	B-General_Concept
(	O
on	O
the	O
right	O
)	O
.	O
</s>
<s>
The	O
diagram	O
above	O
shows	O
the	O
binary	O
representation	O
of	O
24310	O
in	O
the	O
original	O
register	B-General_Concept
,	O
and	O
the	O
BCD	O
representation	O
of	O
243	O
on	O
the	O
left	O
.	O
</s>
<s>
The	O
scratch	O
space	O
is	O
initialized	O
to	O
all	O
zeros	O
,	O
and	O
then	O
the	O
value	O
to	O
be	O
converted	O
is	O
copied	O
into	O
the	O
"	O
original	O
register	B-General_Concept
"	O
space	O
on	O
the	O
right	O
.	O
</s>
<s>
The	O
double-dabble	B-Algorithm
algorithm	O
,	O
performed	O
on	O
the	O
value	O
24310	O
,	O
looks	O
like	O
this	O
:	O
</s>
<s>
The	O
BCD	O
digits	O
to	O
the	O
left	O
of	O
the	O
"	O
original	O
register	B-General_Concept
"	O
space	O
display	O
the	O
BCD	O
encoding	O
of	O
the	O
original	O
value	O
243	O
.	O
</s>
<s>
Another	O
example	O
for	O
the	O
double	B-Algorithm
dabble	I-Algorithm
algorithm	I-Algorithm
value	O
6524410	O
.	O
</s>
<s>
By	O
applying	O
the	O
reverse	O
double	B-Algorithm
dabble	I-Algorithm
algorithm	I-Algorithm
a	O
BCD	O
number	O
can	O
be	O
converted	O
to	O
binary	O
.	O
</s>
<s>
The	O
reverse	O
double	B-Algorithm
dabble	I-Algorithm
algorithm	I-Algorithm
,	O
performed	O
on	O
the	O
three	O
BCD	O
digits	O
2-4-3	O
,	O
looks	O
like	O
this	O
:	O
</s>
<s>
In	O
the	O
1960s	O
,	O
the	O
term	O
double	B-Algorithm
dabble	I-Algorithm
was	O
also	O
used	O
for	O
a	O
different	O
mental	O
algorithm	O
,	O
used	O
by	O
programmers	O
to	O
convert	O
a	O
binary	O
number	O
to	O
decimal	O
.	O
</s>
