https://binary2hex.com/numberconverter.html?id=22231
# Transfer 10001010 from binary in hexadecimal number system

<!--
function timerDecrement() {
var time = $('#timer_perevod').html();
if(time>0)
{
time=time-1;
$('#timer_perevod').html(time);
setTimeout(timerDecrement, 1000);
}
else
{
// ожидание закончено
$('input[name=submit]').val("Перевести");
$('input[name=submit]').prop('disabled',false);
$('#timer_perevod').text(" ");
//$('#ads_calc').text(" ");
$('#text_perevod').fadeIn(100);
$('#href_calc').fadeIn(100);
}
}
function printleftss(ss)
{
if(ss!=4)
{
var ch = $('#chislo').val();
$('#chislo').val(ch.replace('-',''));
}
// if(ss==3) { $('#leftdop').fadeOut(300); $('input[name=ssDop]').attr('checked',false);}
if(ss==6) $('#leftbcd').fadeIn(300); else $('#leftbcd').fadeOut(300);
if(ss==7) $('#leftdr').fadeIn(300); else $('#leftdr').fadeOut(300);
if(ss==8) {if($('#ssDop').is(":checked")) $('#leftdop').fadeIn(300); else $('#leftdop').fadeOut(300);}
}
function printrightss(ss)
{
if(ss==15) $('#rightbcd').fadeIn(300); else $('#rightbcd').fadeOut(300);
if(ss==16) $('#rightdr').fadeIn(300); else $('#rightdr').fadeOut(300);
}
function printleftssDOP()
{
//if($('input[name=ss]:checked').val()==3) {$('#leftdop').fadeOut(300);$('input[name=ssDop]').attr('checked',false); alert("Для ввода знака поставьте - минус перед числом"); return;}
if($('#ssDop').is(":checked")) $('#leftdop').fadeIn(300); else $('#leftdop').fadeOut(300);
}
function printleftssTip(tip)
{
var maxlenght = 0;
var ss = $('input[name=ss]:checked').val();
switch(ss)
{
case '1':maxlenght = 8*tip; break;
case '2':maxlenght = 8*tip; break;
case '3':maxlenght = 3*tip; break;
case '4':maxlenght = 0; break;
case '5':maxlenght = 2*tip; break;
case '6':maxlenght = 8*tip; break;
case '7':maxlenght = 0*tip; break;
}
if(maxlenght!=0)
{
var ch = $('#chislo').val();
var chlenght = ch.length;
if(chlenght>maxlenght)
{
ch = ch.substr(-maxlenght);
$('#chislo').val(ch);
}
}
}
function printleftssTipSign(tip)
{
if(tip==0) $('#lefttipsign').fadeIn(300); else $('#lefttipsign').fadeOut(300);
}
function printRigtssTipSign(tip)
{
if(tip==0) $('#righttipsign').fadeIn(300); else $('#righttipsign').fadeOut(300);
}
function printlrihtssDOP()
{
if($('#ssToDop').is(":checked")) $('#rightdop').fadeIn(300); else $('#rightdop').fadeOut(300);
}
function forEach(data, callback){
for(var key in data){
if(data.hasOwnProperty(key)){
callback(key, data[key]);
}
}
}
function ValidateForm()
{
var strFilter ;
var text;
var ss = $('input[name=ss]:checked').val();
if (ss==1) {strFilter =/^[0-1,.]*$/; text=" a Binary number can only contain the digits 0 and 1, as well as a dot for fractional numbers" }
if (ss==2) {strFilter =/^[0-2,.]*$/; text=" a Ternary number can only contain the digits 0.1 and 2, as well as a dot for fractional numbers"; }
if (ss==3) {strFilter =/^[0-7,.]*$/; text=" an Octal number can only contain digits 0-7, as well as a dot for fractional numbers"; }
if (ss==4) {strFilter =/^[0-9,.-]*$/; text=" a Decimal number can only contain digits 0-9, as well as a dot for fractional numbers"; }
if (ss==5) {strFilter =/^[0-9a-fA-F,.x]*$/; text=" a Hexadecimal number can only contain digits 0-9, letters A, B,C,D, E,F, and a dot for fractional numbers";}
if (ss==6) {strFilter =/^[0-1,.]*$/; text=" a Binary number can only contain the digits 0 and 1, as well as a dot for fractional numbers";}
if (ss==7) {strFilter =/^[0-9a-fA-Z,.-]*$/; text=" a Number can only contain the digits 0 and 9, the letters A-Z, and a dot for fractional numbers";}
if (!strFilter.test($('#chislo').val()))
{
alert(text);
}
else if($('#chislo').val()==0)
{
alert(" Enter a number");
$('#chislo').val('');
//alert($('input[name=ssTobcd]:checked').val());
}
else if($('#chislo').val().length>=30)
{
alert(" a Binary number can only contain the digits 0 and 1, as well as a dot for fractional numbers");
$('#chislo').val('');
}
else
{
$('input[name=submit]').val(" data Transfer, wait");
$('input[name=submit]').prop('disabled',true);
$('#text_perevod').fadeOut(1);
$('#href_calc').fadeOut(1);
// отправляем форму
$.ajax({
type:"POST",
data: {
chislo: $('#chislo').val(),
ss: $('input[name=ss]:checked').val(),
ssTo: $('input[name=ssTo]:checked').val(),
ssbcd: $('input[name=ssbcd]:checked').val(),
ssTobcd: $('input[name=ssTobcd]:checked').val(),
ssdr: $('#ssdr').val(),
ssTodr: $('#ssTodr').val(),
ssDop: $('input[name=ssDop]:checked').val(),
sssign: $('input[name=sssign]:checked').val(),
sstip: $('input[name=sstip]:checked').val(),
sstipsign: $('input[name=sstipsign]:checked').val(),
ssToDop: $('input[name=ssToDop]:checked').val(),
ssTosign: $('input[name=ssTosign]:checked').val(),
ssTotip: $('input[name=ssTotip]:checked').val(),
ssTotipsign: $('input[name=ssTotipsign]:checked').val(),
},
url: "https://binary2hex.com/calc/calcyadro.php?calculator=2&calcid=1",
cache: false,
dataType: 'json',
success:function(data) {
$('input[name=submit]').val(" waiting for the calculation to complete");
forEach(data,function(key,value) {
if(key=="otvet_perevod") $('#otvet_perevod').html(value);
if(key=="timer_perevod") $('#timer_perevod').text(value);
if(key=="error_perevod") $('#error_perevod').html(value);
if(key=="text_perevod") $('#text_perevod').html(value);
if(key=="like_block") $('#like_block').html(value);
if(key=="href_calc") $('#href_calc').html(value);
if(key=="ads_calc") $('#ads_calc').html(value);
if(key=="link_print") $('#link_print').html(value);
});
timerDecrement();
}
});
}
}
-->

Ternary

Octal

Decimal

Hexadecimal

Binary-decimal

Other

Additional

Binary

Triple

Octal

Decimal

Hexadecimal

Binary-decimal

Other

Additional

$( function() {
window.print();
});

Enter a number:

His number system:

Binary Ternary

Octal

Decimal

Hexadecimal

Binary-decimal

Other

Additional

Translate to :

This transfer is possible in two ways: direct transfer and using the decimal system.

first, let\'s make a direct transfer.

let\'s do a direct translation from binary to hexadecimal like this:

10001010_{2} = 1000 1010 = 1000_{(=8)} 1010_{(=A)} = 8A_{16}

the Final answer: 10001010_{2} = 8A_{16}

now let\'s make the transfer using the decimal system.

let\'s translate to decimal like this:

1∙2^{7}+0∙2^{6}+0∙2^{5}+0∙2^{4}+1∙2^{3}+0∙2^{2}+1∙2^{1}+0∙2^{0} = 1∙128+0∙64+0∙32+0∙16+1∙8+0∙4+1∙2+0∙1 = 128+0+0+0+8+0+2+0 = 138_{10}

got It: 10001010_{2} =138_{10}

Translate the number 138_{10} в hexadecimal like this:

the Integer part of the number is divided by the base of the new number system:

138 | 16 | ||

-128 | 8 | ||

A | |||

the result of the conversion was:

138_{10} = 8A_{16}

the Final answer: 10001010_{2} = 8A_{16}

Permanent link to the result of this calculation