Help for this page

Select Code to Download


  1. or download this
    dec(998)  == 998
    dec(999)  == 999
    dec(1000) ==   8
    dec(1001) ==   9
    dec(1002) == 514
    
  2. or download this
    # changebase($number, $from[, $to]);
    
    ...
    # 255
    print changebase('FF', 16, 2);
    # 11111111
    
  3. or download this
    use Base;
    $hex = new Base 16 => 'FF';
    ...
    # 11111111
    print $hex;
    # 11111111