Help for this page

Select Code to Download


  1. or download this
    sub bits_needed {
        my ( $unsigned, $resolution ) = @_;
    ...
            if defined $resolution;
        return $bits_needed;
    }
    
  2. or download this
    sub log2 {
        my $n = shift;
        return log($n)/log(2);
    }
    
  3. or download this
    
    use strict;
    ...
    a hex representation of '{lc $new_hex}'.
    
  4. or download this
    
    Given the hex digits '6bf' with a bit
    ...
    a hex representation of 'fd6'.