📜  十进制到二进制伪 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:49.886000             🧑  作者: Mango

代码示例1
number = positive integer ;
bitstring = ""

while (number > 0 )
{
  bit      = number mod 2 ;
  quotient = number div 2 ;
  put bit to the left of any previous bits in the bitstring ;
  number = quotient ;
}