(
(/
('
c
The T Function: Encode (Representation) m
Monadic Form
There
is
no monad
ic
form.
Dyadic Form: Encode
AT
B
This function
is
the
reverse
of
the
decode function. The encode function result
is
the representation
of
argument B
in
the
number system specified by argument A.
Note:
Be
sure argument A
is
long enough
to
completely represent argument B
or
an incorrect answer results.
For example, the representation
of
1776
in
the
decimal number system (base 10):
10
10 10
10r1776
:I.
7
7.6
The following illustration shows how it was done:
Argument A (number system) specifies
the
following:
10 10 10 10
tL._--'-t_--'t
_____
tL.....
___
Ten units
in
each
of
these positions
Argument B 'has this value:
1776
equals
one
unit
of
the
next
position
to
the
left.
99