note 76660 added to function.decbin

From: Date: Wed, 25 Jul 2007 06:42:55 +0000
Subject: note 76660 added to function.decbin
Groups: php.notes 
Request: Send a blank email to php-notes+get-128902@lists.php.net to get a copy of this message
Usar decbin no JavaScript: function decbin(numero) { if (parseInt(numero) . toString() == 'NaN') return false; var resto = ''; while (Math . floor(numero) != 0) { resto += numero % 2; numero = Math . floor(numero / 2); } return strrev(resto); } function strrev(string) { if (string == undefined) return false; var string = string . toString(); var a = string . length; var retorno = ''; while (a != 0) { retorno += string . charAt(--a); } return retorno; } Obrigado PHP.net! MSN: msn@viniciuscainelli.com ---- Server IP: 200.185.109.13 Probable Submitter: 200.100.207.7 ---- Manual Page -- http://www.php.net/manual/en/function.decbin.php Edit -- https://master.php.net/note/edit/76660 Del: integrated -- https://master.php.net/note/delete/76660/integrated Del: useless -- https://master.php.net/note/delete/76660/useless Del: bad code -- https://master.php.net/note/delete/76660/bad+code Del: spam -- https://master.php.net/note/delete/76660/spam Del: non-english -- https://master.php.net/note/delete/76660/non-english Del: in docs -- https://master.php.net/note/delete/76660/in+docs Del: other reasons-- https://master.php.net/note/delete/76660 Reject -- https://master.php.net/note/reject/76660 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128902) next »