src/Barcode/Imb.php
private function decToHex($number)
	{
		$hex = [];

		if ($number == 0) {
			return '00';
		}

		while ($number > 0) {
			if ($number == 0) {
				array_push($hex, '0');
			} else {
				array_push($hex, strtoupper(dechex(bcmod($number, '16'))));
				$number = bcdiv($number, '16', 0);
			}
		}

		$hex = array_reverse($hex);
		return implode($hex);
	}
private function decToHex($number)
	{
		$hex = [];

		if ($number == 0) {
			return '00';
		}

		while ($number > 0) {
			if ($number == 0) {
				array_push($hex, '0');
			} else {
				array_push($hex, strtoupper(dechex(bcmod($number, '16'))));
				$number = bcdiv($number, '16', 0);
			}
		}

		$hex = array_reverse($hex);
		return implode($hex);
	}
private function decToHex ( $ number ) { $ hex = [ ] ; if ( $ number == 0 ) { return '00' ; } while ( $ number > 0 ) { if ( $ number == 0 ) { array_push ( $ hex , '0' ) ; } else { array_push ( $ hex , strtoupper ( dechex ( bcmod ( $ number , '16' ) ) ) ) ; $ number = bcdiv ( $ number , '16' , 0 ) ; } } $ hex = array_reverse ( $ hex ) ; return implode ( $ hex ) ; }
Convert large integer number to hexadecimal representation.

@param int $number
@return string
Convert large integer number to hexadecimal representation .