src/Decider.php
/**
     * Calculates how many digits of hex would be needed to make a number
     * bigger than the one given
     */
Calculates how many digits of hex would be needed to make a number
bigger than the one given
Calculates how many digits of hex would be needed to make a number bigger than the one given
public function hexDigitsNeeded($number)
    {
        $digits_needed = 1;
        $hex_value = 16;
        while ($hex_value < $number) {
            $digits_needed++;
            $hex_value = $hex_value * 16;
        }
        return $digits_needed;
    }
public function hexDigitsNeeded ( $ number ) { $ digits_needed = 1 ; $ hex_value = 16 ; while ( $ hex_value < $ number ) { $ digits_needed ++ ; $ hex_value = $ hex_value * 16 ; } return $ digits_needed ; }
Calculates how many digits of hex would be needed to make a number
 bigger than the one given
Calculates how many digits of hex would be needed to make a number bigger than the one given