»
AnglaisFrançaisVietnamien

Imprimer - Binary Converter - JavaScriptBank.com

Version complète: jsB@nk » Calcul » Équivalent » Binary Converter
URL: https://www.javascriptbank.com/binary-converter.html

Binary Converter © JavaScriptBank.comOrdinateurs lire et stocker les nombres décimaux, nous voyons tous les jours (1, 5, 10, 100, etc) en tant que nombres binaires, un certain nombre d'à peine 1 et de 0. Tout ce que vous faire est d'entrer le nombre décimal et le script va afficher le binaire équivalent! Il s'agit d'un convertisseur binaire!

Version complète: jsB@nk » Calcul » Équivalent » Binary Converter
URL: https://www.javascriptbank.com/binary-converter.html



JavaScript
<SCRIPT LANGUAGE="JavaScript">// Author: Cyanide_7 (leo7278@hotmail.com)<!-- Beginfunction toBin(form) {base = parseInt(form.base.value);num = parseInt(form.num.value);form.amount.value = num.toString(base);}// End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form name=numform><input type=text name=num size=8> to base <input type=text name=base size=8 value=2 onBlur="if ((this.value<1)||(this.value>36)){alert('The base must be between 2 and 36.');this.select();this.focus();}"> <input type=button value=" = " onclick="toBin(this.form)"> <input type=text name=amount size=15></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->