The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Chj::BinHexOctDec

SYNOPSIS

    use Chj::BinHexOctDec;
    my $num= Chj::BinHexOctDec->bin("1001010010");
    is ref($num), "Chj::BinHexOctDec";
    is $num->dec, 594;

    use FP::Equal 'is_equal';
    is_equal [ map { $num->$_ } qw(dec bin hex oct) ],
             [ 594, "1001010010", "252", "1122" ];

DESCRIPTION

Conversions between number bases.

The methods are overloaded both as class methods (to convert *from* that base) and object method (*to* that base).

Note: does not die on invalid input. (Should this be considered a bug?)

METHODS

NOTE

This is alpha software! Read the status section in the package README or on the website.