SU760085A1 - Binary-decimal-to-binary number converter - Google Patents

Binary-decimal-to-binary number converter Download PDF

Info

Publication number
SU760085A1
SU760085A1 SU782622676A SU2622676A SU760085A1 SU 760085 A1 SU760085 A1 SU 760085A1 SU 782622676 A SU782622676 A SU 782622676A SU 2622676 A SU2622676 A SU 2622676A SU 760085 A1 SU760085 A1 SU 760085A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
elements
control unit
binary
Prior art date
Application number
SU782622676A
Other languages
Russian (ru)
Inventor
Viktor N Rozov
Original Assignee
Viktor N Rozov
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Viktor N Rozov filed Critical Viktor N Rozov
Priority to SU782622676A priority Critical patent/SU760085A1/en
Application granted granted Critical
Publication of SU760085A1 publication Critical patent/SU760085A1/en

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Complex Calculations (AREA)

Description

Изобретение относится к области автоматики а вычислительной техники и может быть использовано при. построении преобразователей кодов *как правильных и смешанных дробей, так и целых чисел.The invention relates to the field of automation and computing and can be used when. building code converters * of both regular and mixed fractions, as well as integers.

Известен преобразователь двоично-десятичных ® чисел в двоичные, содержащий регистр тетрады, блок хранения двоичных эквивалентов, переключатель эквивалентов и сумматор (11- , < .The known converter of binary decimal numbers to binary, containing the register of the tetrad, the block of storage of binary equivalents, the switch of equivalents and the adder (11-, <.

Недостаток этого преобразователя состоит в низком быстродействии из-за зависимости скорости его работы от числа двоичных разрядов.The disadvantage of this converter is low speed due to the dependence of the speed of its work on the number of binary digits.

. Наиболее близким по технической сущности и схемному решению является преобразователь ъ двоично-десятичных чисел в двоичные, содержа; щий накопительный сумматор, регистр тетрады, переключатель эквивалентов, блок хранения двоичных эквивалентов, сдвигатель и блок управления, вход которого соединен ’с управля- м ющей шиной преобразователя, входом переключателя эквивалентов и первым входом регистра тетрады, второй вход которого соединен с входной шиной преобразователя, выход переключа2. The closest in technical essence and circuit design is a converter ъ binary-decimal numbers to binary, containing; conductive cumulative adder, a register tetrad equivalents switch unit storing binary equivalents shifter and a control unit having an input coupled 'with m upravlya- guide rail converter, an input switch and equivalents tetrad first input register, a second input coupled to the input bus converter, switch output2

тейя эквивалентов соединен с входом блока хранения двоичных, эквивалентов, выход которого соединен с первым входом сдвигателя, выход которого-соединен с первым входом накопительного сумматора, выход которого является выходом преобразователя [ 2).This equivalent is connected to the input of the binary storage unit, equivalent, the output of which is connected to the first input of the shifter, the output of which is connected to the first input of the accumulative adder, the output of which is the output of the converter [2).

Недостаток данного преобразователя состоит в сравнительно невысоком быстродействии, поскольку он затрачивает три такта на обработку ‘одного двоично-десятичного разряда.The disadvantage of this converter is relatively low speed, since it spends three clocks on processing one binary-decimal digit.

Цепью изобретения является увеличение быстродействия за счет сокращения времени умножения на 10 до двух тактов.The chain of the invention is to increase the speed by reducing the multiplication time by 10 to two cycles.

< Для этого преобразователь дополнительно содержит первый, второй, третий и четвертый элементыИ, первый, второй, третий и четвертый элементы ИЛИ, первый и второй элементы ЗАПРЕТ, причем выход первого элемента И соединен с инверсным входом первого элемента ЗАПРЕТ исо вторым входом накопительного сумматора, третий вход которого соединен с выходом Первого элемента ЗАПРЕТ, первый, второй и третий входы второго элемента И соединены с соответствующими выходами регистра тетрады,<For this, the converter additionally contains the first, second, third and fourth elements, the first, second, third and fourth elements OR, the first and second elements BAN, the output of the first element I is connected to the inverse input of the first element BANNER and the second input of the cumulative adder, the third the input of which is connected to the output of the First BENTER element, the first, second and third inputs of the second element I are connected to the corresponding outputs of the register of the tetrad,

3 760085 43 760085 4

первый, второй и инверсный входы третьего элемента И соединены с первым, вторым и третьим выходам регистра тетрада, выход второго элемента И соединен с первым инверсным входом четвертого элемента И, инверсным входом второго элемента ЗАПРЕТ и первыми входами первого и второго элементов ИЛИ, выход третьего элемента И соединен со вторым инверсным входом четвертого элемента И, первым входом третьего элемента ИЛИ и вторым входом второго элемента ИЛИ, выход которого соединен с первым входом первого элемента И, .прямой вход второго элемента ЗАПРЕТ соединен с третьим выходом регистра тетрады, четвертый выход которого соединен со вторым входом первого элемента ИЛИ, второй, третий, четвертый и пятый входы блока управления соединены соответственно с первым выходом регистра тетрады, выходом Четвёртого элемента И, выходами третьего и первого элементов · 2θ ИЛИ, первый, второй, третий й четвертый выходы блока управления соединены с соответствующими входами сдвигателя и четвертого элемента ИЛИ, выход которого соединен с прямым входом первого элемента ЗАПРЕТ, пятый вы- 25 the first, second and inverse inputs of the third element And are connected to the first, second and third outputs of the tetrad register, the output of the second element And is connected to the first inverse input of the fourth element And, the inverse input of the second element BAN and the first inputs of the first and second elements OR, the third element And connected to the second inverse of the fourth element AND, the first input of the third element OR and the second input of the second element OR, the output of which is connected to the first input of the first element AND, the direct input of the second element REC ET is connected to the third output tetrads register, a fourth output is connected to a second input of said first OR gate, the second, third, fourth and fifth inputs of the control unit are respectively connected to the first output tetrads register output Fourth AND gate, the outputs of the third and first elements · 2 θ OR, the first, second, third, fourth second control unit outputs are connected to respective inputs of shifter and a fourth OR gate, whose output is connected to the direct input of the first aND gate with inverted, You are a fifth 25

........ ход блока, управления соединён со вторым........ the course of the block, the control is connected to the second

входом первого элемента И.the entrance of the first element I.

Блок управления содержит генератор импульсов, пятый, шестой; седьмой и восьмой элемен- ; ты И, выходы которых являются соответству- 30 ющими выходами , блока управления, вход генератора импульсов является первым входом блока управления, первые входы пятого,/шестого, седьмого и восьмого элементов И'являются вторым, третьим, четвертым й пятым вхо- 35 дами блока управления, первый выход генератора Импульсов соединен со вторыми входами пятого и шестого элементов И и является пятым выходом блока управления, а второй выход генератора импульсов соединен со вторыми входами седьмого и восьмого элементов И.,The control unit contains a pulse generator, the fifth, sixth; seventh and eighth element; And you, the outputs of which are corresponding yuschimi 30 outputs a pulse generator control unit, the input is a first input of control unit, first inputs of fifth / sixth, seventh and eighth elements I'yavlyayutsya second, third, fourth, fifth th block rows 35 vho- control, the first output of the pulse generator is connected to the second inputs of the fifth and sixth elements And is the fifth output of the control unit, and the second output of the pulse generator is connected to the second inputs of the seventh and eighth elements I.,

На чертеже представлена блок-схема преобразователя двоично-десятичных чисел в двоич/"//' / йые/ /. //'2' - /// <The drawing shows a block diagram of the converter of binary-decimal numbers to binary / "// '/ th / /. //' 2 '- /// <

Предлагаемый преобразователь содержит переключатель 1 эквивалентов, блок 2 хранения двоичных эквивалентов, регистр 3 тетрады, сдвйгатель 4, накопительный сумматор 5, блок 6 управления преобразованием, состоящий из генератора 7 импульсов и четырех элементов И 8—11; элементы И 12—15, в третьем из которых один, а в четвертом два входа инверсных; элементы ИЛИ 16-19, элементы ЗАПРЕТ 20,The proposed converter contains a switch of 1 equivalents, a block of 2 storage of binary equivalents, a register of 3 tetrads, a shifter 4, a cumulative adder 5, a conversion control block 6 consisting of a generator of 7 pulses and four elements AND 8-11; elements And 12-15, in the third of which one, and in the fourth two inverse inputs; elements OR 16-19, elements BAN 20,

21; входную шину 22 двоично-десятичных разрядов числа, '.управляющую шину 23 и выходную шину 24 преобразователя.21; the input bus is 22 binary-decimal digits of the number, the control bus 23 and the output bus 24 of the converter.

Принцип работы преобразователя заключает· - ся в следующем.The principle of operation of the converter is as follows.

Управляющий импульс, поступающий в каждом цикле на шину 23, записывает вводимый двоично-десятичный разряд преобразуемого числа в регистр 3 тетрады и запускает в работу блок 6 управления преобразованием.. Этот же управляющий импульс для данного разряда переводит переключатель 1 эквивалентов на считывание из блока 2 соответствующего эквивалента Ю д* . Количество двоичных эквивалентов определяется разрядностью десятичных чисел. Выбранный двоичный эквивалент поступает параллельным кодом на вход сдвигателя 4 и используется далее в качестве слагаемого в накопительном сумматоре 5, формирующим двоичный код числа. Сдвйгатель 4 реализован в частном случае по схеме четырехвходового коммутатора' для каждого двоичного разряда, на информационные входы которого заведены соответствующие разряды двоичного эквивалента, дающие на выходе по сигналам блока 6 параллельный код двоичного эквивалента без сдвига или со сдвигом кода на один, два или три разряда в сторону старших разрядов, что соответствует умножению эквивалента на число два, четыре или восемь/ Генератор Ί блока 6 при получении каждого управляющего импульса вырабатывает два одиночных тактовых импульса, каждый из которых выдается по отдельной шине и служит стробом при формировании сигналов управления преобразованием. Второй тактовый Импульс задержан по времени относительно первого. Преобразование каждого двоично-десятичного разряда осуществляется путем накапливания в сумматоре 5 результирующего двоичного кода на основе соответствующего эквивалента по данным результата анализа входной тетрада. Если на выходе регистра 3 тетра·· ды присутствует логическая единица только в первом (младшем) разряде, т.е. очередная десятичная цифра равна единице, то по второму тактовому импульсу с выхода элемента И 8 снимается сигнал, разрешающий сдвигателю 4 передачу на информационный вход сумматора 5 двоичного кода эквивалента без сдвига. Одновременно этот же сигнал, пройдя через элементы 19 и 20, разрешает суммирование. При наличии логической единицы только во втором разряде регистра 3 (очередная двоично-десятичная тетрада равняется двум) с помощью элементов ГЗ, 14, 15 формируется на выходе элемента И 9 по второму тактовому импульсу сигнал, разрешающий сдвиг кода эквивалента на один разряд, этот же сигнал, пройдя элементы 19 и 20, формирует разрешение сложения. Наличие логической единицы только в третьем разряде регистра 3 (десятичная цифра равна четырем) вызывает формирование на элементах 21, 18, 10 по первому тактовому импульсу сигнал разрешения сдвига кода на два разряда й далее на элемен760085The control impulse arriving in each cycle on the bus 23 records the entered binary-decimal digit of the number being converted to the register of 3 tetrads and starts the conversion control unit 6 into operation. The same control pulse for this discharge translates the switch 1 equivalent to read from block 2 of the corresponding equivalent Yu d *. The number of binary equivalents is determined by the decimal digits. The selected binary equivalent is fed by a parallel code to the input of the shifter 4 and is then used as a term in accumulative adder 5, which forms the binary code of a number. The shifter 4 is implemented in the particular case according to the four-input switch 'scheme for each binary digit, on the information inputs of which the corresponding bits of the binary equivalent are applied, which at the output of the signals of block 6 parallel code of the binary equivalent without shifting or shifting the code by one, two or three digits towards the higher digits, which corresponds to multiplying the equivalent by the number two, four or eight / Generator Ί of block 6, when receiving each control pulse, produces two single clock pulses bca, each of which is issued by a private bus and serves as a gate when forming the conversion control signals. The second clock pulse is delayed in time relative to the first. The conversion of each binary-decimal digit is performed by accumulating in the adder 5 the resulting binary code based on the corresponding equivalent according to the result of the analysis of the input tetrad. If at the output of the register 3 tetra ·· d there is a logical unit only in the first (lowest) digit, If the next decimal digit is equal to one, then the second clock pulse from the output of the And 8 element removes the signal allowing the shifter 4 to transmit the information input of the adder 5 of the binary code equivalent without shifting. At the same time, the same signal, passing through elements 19 and 20, allows summation. If there is a logical unit only in the second digit of register 3 (the next binary decimal tetrad equals two) with the help of GZ elements, 14, 15 a signal is generated at the output of the AND 9 element by the second clock pulse allowing the code shift of the equivalent by one digit, the same signal passing elements 19 and 20, forms the resolution of the addition. The presence of a logical unit only in the third digit of register 3 (the decimal digit is four) causes the code shift resolution signal to be generated by elements 21, 18, 10 by the first clock pulse two bits further by element 760085

тах 19, 20 разрешение сложения. Наличие же логической единицы только в четвертом (старшем) разряде тетрады (десятичная цифра равна восьми) приводит к формированию на элементах 16 и 11 по первому тактовому импульсу. 5 сигнала, разрешающего сдвиг кода эквивалента на три разряда, и на элементах 19, 20 разрешение сложения. Для преобразования кода, остальных входных десятичных цифр формируются на соответствующих элементах устройства сиг- щ налы, разрешающие выполнение операций согласно таблицы:max 19, 20 resolution addition. The presence of a logical unit only in the fourth (senior) discharge of the tetrad (decimal digit is equal to eight) leads to the formation of elements 16 and 11 on the first clock pulse. 5 of the signal, allowing the shift of the code equivalent to three digits, and on the elements 19, 20 the resolution of addition. To convert the code, the remaining input decimal digits are formed on the corresponding elements of the device signals, allowing the execution of operations according to the table:

Входная десятичная цифра Input decimal digit Операция Operation 3 3 4 - 1 4 - 1 5 five 4 + 1 4 + 1 6 6 4+2 4 + 2 7 7 81 81 9 9 8+1 8 + 1

При этом сигнал, разрешающий вычитание, формируется по второму тактовому импульсу на элементах 14, 17, 12 для цифры три и на элементах 13, 17, 12 для цифры семь. Одно- зо временно этот же сигнал запрещает на элементе 20 формирование сигнала сложения. Сигнал, разрешающий сдвиг на два разряда Для случая операции вычитания, формируется на элементах 14, 18, 10 на три разряда - на элементах 13,In this case, the signal allowing the subtraction is generated by the second clock pulse on the elements 14, 17, 12 for the number three and on the elements 13, 17, 12 for the number seven. At the same time, the same signal prohibits the formation of the addition signal on the element 20. The signal permitting a shift of two digits For the case of a subtraction operation, is formed on elements 14, 18, 10 by three digits - on elements 13,

16, 11. Для случая операции сложения формирование сигналов разрешения сдвигов выполняется аналогично.16, 11. For the case of the addition operation, the formation of shift resolution signals is performed in a similar way.

Вслед за первым десятичным разрядом точно также за один цикл, состоящий из двух до тактов, происходит преобразование каждого последующего двоично-десятичного разряда исходного числа. При этом для каждого нового цикла считывается из блока 2 очередной двоичный эквивалент 10 Так продолжается 45 Following the first decimal place, in exactly the same way, in one cycle consisting of two before cycles, each subsequent binary-decimal digit of the original number is converted. At the same time, for each new cycle, the next binary equivalent of 10 is read from block 2. This continues 45

до тех пор, пока не будут преобразованы все двоично-десятичные разряды исходного числа, а в сумматоре 5 не сформируется искомое двоичное число, которое считывается с выходной шины 24. доuntil all the binary decimal digits of the source number have been converted, and in the adder 5, the desired binary number is generated, which is read from the output bus 24. to

Предлагаемый преобразователь двоично-де- * сятичных чисел в двоичные осуществляет проце- ДУРУ преобразования десятичного разряда за два такта. Вследствие этого, время преобразования как правильных и смешанных дробей, 55 так и целых чисел уменьшается в 1,5 раза.The proposed converter of binary-decimal numbers to binary implements the FURT process for converting a decimal digit in two cycles. As a result, the conversion time of both regular and mixed fractions, 55 and integers is reduced by 1.5 times.

При этом повышается помехоустойчивость аппаратуры и уменьшается возможность появления ошибки в вычислениях.This increases the noise immunity of the equipment and decreases the possibility of an error in the calculations.

Claims (2)

Формула изобретенияClaim 1. Преобразователь двоично-десятичных чисел в двоичные, содержащий накопительный сумматор, регистр тетрады, переключатель эквивалентов, блок хранения двоичных эквивалентов, сдвигатель и блок управления, вход которого соединен с управляющей шиной преобразователя, входом переключателя эквивалентов и первым входом регистра тетрады, второй вход которого соединен с входной шиной преобразователя, выход переключателя эквивалентов, соединен с входом блока хранения двоичных эквивалентов, выход которого соединен с первым входом с двигателя, выход которого соединен с первым входом накопительного сумматора, выход которого является выходом преобразователя, отличающийся тем, что,, с целью увеличения скорости преобразований; он содержит первый, второй, третий и четвертый элементы И, первый, второй, третий и четвертый элементы ИЛИ, первый и второй элементы ЗАПРЕТ, причем выход первого элемента И соединен с инверсным входом первого элемента ЗАПРЕТ и со вторым входом накопительного сумматора, третий вход которого соединен с выходом первого элемента ЗАПРЕТ, первый, второй, и третий входы второго элемента И соединены с соответствующими выходами регистра тетрады, первый, второй и инверсный входы третьего элемента И соединены с первым, вторым и третьим выходами регистра тетрады, выход второго эйемента Й соединен с первым инверсным входом четвертого элемента И, инверсным входом второго элемента ЗАПРЕТ и первыми входами первого и второго элементов ИЛИ, выход третьего элемента Й соединен со вторым инверсным входом Четвёртого элемента И, первым входом третьего элемента ИЛИ и вторым входом второго элемента ИЛИ, выход которого соединен с первым входом первого элемента И, прямой вход второго элемента ЗАПРЕТ соединен с третьим выходом регистра тетрады, четвертый выход которого соединен со вторым входом первого элемента ИЛИ, второй, третий, четвертый и пятый входы блока управления соединены соответственно с первым выходом регистра ί тетрады, выходом четвертого элемента И, вы, ходами третьего и первого элемента ИЛИ, первый, второй, третий и четвертый выходы блока управления соединены с соответствующими входами сдвигателя и четвертого элемента ИЛИ, выход которого соединен с прямым входом первого элемента ЗАПРЕТ, пятый выход блока управления соединен со вторым входом первого элемента И.1. Converter binary decimal numbers to binary, containing a cumulative adder, register tetrade, switch equivalents, storage unit binary equivalents, shifter and control unit, the input of which is connected to the control bus of the converter, the input of the switch equivalents and the first input of the register of the tetrad, the second input of which connected to the input bus of the converter, the output of the switch of equivalents, connected to the input of the storage unit of binary equivalents, the output of which is connected to the first input from the engine, turn is connected to the first input of the cumulative adder whose output is an output transducer, characterized in that ,, to increase the transformation rate; It contains the first, second, third and fourth elements AND, the first, second, third and fourth elements OR, the first and second elements BAN, the output of the first element AND connected to the inverse of the first element BAN and the second input of the cumulative adder, the third input connected to the output of the first element BANGE, the first, second, and third inputs of the second element And are connected to the corresponding outputs of the register of the tetrad; the first, second and inverse inputs of the third element And are connected to the first, second and third outputs regis the tetrad, the second output element Y is connected to the first inverse of the fourth element AND, the inverse input of the second element BANCH and the first inputs of the first and second OR elements, the output of the third element Y is connected to the second inverse of the Fourth element AND, the first input of the third element OR and the second the input of the second OR element, the output of which is connected to the first input of the first element AND, the direct input of the second element BANGE is connected to the third output of the tetrad register, the fourth output of which is connected to the second input of the first The second element OR, the second, third, fourth and fifth inputs of the control unit are connected respectively to the first register output ί of the tetrad, the output of the fourth element AND, you, by the turns of the third and first element OR, the first, second, third and fourth outputs of the control unit are connected to the corresponding the inputs of the shifter and the fourth element OR, the output of which is connected to the direct input of the first element BAN, the fifth output of the control unit is connected to the second input of the first element I. . 2. Преобразователь по π. 1, о т л и ч а тощий с я тем, что в нем блок управления содержит генератор импульсов, пятый, шестой.. 2. Converter π. 1, that is, the fact that in it the control unit contains a pulse generator, the fifth, sixth. седьмой и восьмой элементы И, выходы которых являются соответствующими выходами блока управления, вход генератора импульсов являете? первым входом блока управления, первые входы пятого, шестого, седьмого и восьмого элементов И являются вторым, третьим, четвертым и пятым входами блока управления, первыйthe seventh and eighth elements And, the outputs of which are the corresponding outputs of the control unit, the input of the pulse generator is? the first input of the control unit, the first inputs of the fifth, sixth, seventh and eighth elements And are the second, third, fourth and fifth inputs of the control unit, the first выход генератора импульсов соединен со вторы- 2. Авторское свидетельство СССР № 572781,the output of the pulse generator is connected to the second-. USSR author's certificate No. 572781, !Мй входами пятого и Щестого элементов И и яв-. <0 кл. С 06 Р 5/02, 1976. ! My entrances of the fifth and Shestey elements AND and JAVA-. <0 cl. C 06 P 5/02, 1976. ЦНИИПИ Государственного комитета СССР. · по делам изобретений и открытии. .TSNIIPI USSR State Committee. · Inventions and discoveries. . 113035, Москва, Ж-35, Раушская наб., д. 4/5113035, Moscow, Zh-35, Raushskaya nab. 4/5 760085 λ 8760085 λ 8 ляется пятым выходом блока управления, а вто- | рой выход генератора импульсов соединен со вто-, рыми входами седьмого и восьмого элементов И.It is the fifth output of the control unit, and the second | the swarm output of the pulse generator is connected to the second, rymi inputs of the seventh and eighth elements I.
SU782622676A 1978-06-01 1978-06-01 Binary-decimal-to-binary number converter SU760085A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU782622676A SU760085A1 (en) 1978-06-01 1978-06-01 Binary-decimal-to-binary number converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU782622676A SU760085A1 (en) 1978-06-01 1978-06-01 Binary-decimal-to-binary number converter

Publications (1)

Publication Number Publication Date
SU760085A1 true SU760085A1 (en) 1980-08-30

Family

ID=20767615

Family Applications (1)

Application Number Title Priority Date Filing Date
SU782622676A SU760085A1 (en) 1978-06-01 1978-06-01 Binary-decimal-to-binary number converter

Country Status (1)

Country Link
SU (1) SU760085A1 (en)

Similar Documents

Publication Publication Date Title
SU760085A1 (en) Binary-decimal-to-binary number converter
SU911508A1 (en) Device for comparing two numbers
SU572781A1 (en) Radix converter of binary-decimal numbers into binary numbers
SU924704A1 (en) Device for raising to the third power
RU2248094C2 (en) Device for transforming numbers from decimal to binary notation scale
SU1569823A1 (en) Multiplying device
SU491129A1 (en) Device for raising binary numbers to the third degree
SU911521A1 (en) Digital function generator
SU1662004A1 (en) Binary coded decimal to binary translator
SU1246091A1 (en) Device for extracting square root
SU723567A1 (en) Binary-decimal- to-binary code converter
SU754428A1 (en) Digital averaging device for smoothing functions
SU1280615A1 (en) Versions of device for squaring binary numbers
SU1300640A1 (en) Binary-coded decimal code-to-binary code converter
SU1283756A1 (en) Device for calculating value of square root
SU720424A1 (en) Binary-decimal to sequential binary code converter
RU1783618C (en) Converter of binary k-digit code to binary code
SU960792A1 (en) Converter of binary code to mixed base position code
SU1151956A1 (en) Squaring device
SU658556A1 (en) Gray code-to -binary code converter
SU1221757A1 (en) Binary code-to-binary-coded decimal code translator
SU450153A1 (en) Code rate converter
SU739523A1 (en) Binary decimal-to-binary converter
SU744568A2 (en) Parallel accumulator
SU1262733A2 (en) Binary-coded decimal number-to-binary number converter