decToBin() 공개 정적인 메소드

This method returns a binary string representation of the decimal number. Used for the doubleAndAdd() method.
또한 보기: http://php.net/manual/en/function.decbin.php but for large numbers
public static decToBin ( $dec ) : string
리턴 string
예제 #1
0
 public function testDecToBin()
 {
     $data = array(array('123456789', '101010001011001111011010111'), array('0x123456789', '100100011110011010100010110001001'));
     foreach ($data as $datum) {
         $this->assertSame($datum[1], Util::decToBin($datum[0]));
     }
 }