https://decimal-to-binary.com/decimal-to-binary-converter-online.html?id=51882
# Transfer 0040 from 0040 - rich in binary 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(" ");
//$('#text_perevod').fadeIn(100);
// $('#href_calc').fadeIn(100);
window.location.href = $('#link').html();
}
}
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);
$('#calc_wait').fadeIn(1);
$('#ads_calc').fadeIn(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://decimal-to-binary.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);
if(key=="link") $('#link').html(value);
});
timerDecrement();
}
});
}
}
-->

Ternary

Octal

Decimal

Hexadecimal

Binary-decimal

Other

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

What? (number)

Additional Translate to :

let\'s translate to decimal like this:

0∙0040^{3}+0∙0040^{2}+4∙0040^{1}+0∙0040^{0} = 0∙64000+0∙1600+4∙40+0∙1 = 0+0+160+0 = 160_{10}

got It: 0040_{0040} =160_{10}

Translate the number 160_{10} в binary like this:

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

160 | 2 | ||||||||

-160 | 80 | 2 | |||||||

0 | -80 | 40 | 2 | ||||||

0 | -40 | 20 | 2 | ||||||

0 | -20 | 10 | 2 | ||||||

0 | -10 | 5 | 2 | ||||||

0 | -4 | 2 | 2 | ||||||

1 | -2 | 1 | |||||||

0 | |||||||||

the result of the conversion was:

160_{10} = 10100000_{2}

answer: 0040_{0040} = 10100000_{2}