Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

# Math::String 1.27

Date Added: January 05, 2010  |  Visits: 880

Math::String module contains arbitrary sized integers having arbitrary charsets to calculate with key rooms. SYNOPSIS use Math::String; use Math::String::Charset; \$a = new Math::String cafebabe; # default a-z \$b = new Math::String deadbeef; # a-z print \$a + \$b; # Math::String "" \$a = new Math::String aa; # default a-z \$b = \$a; \$b++; print "\$b > \$a" if (\$b > \$a); # prove that ++ makes it greater \$b--; print "\$b == \$a" if (\$b == \$a); # and that ++ and -- are reverse \$d = Math::String->bzero( [0...9] ); # like Math::Bigint \$d += Math::String->new ( 9999, [ 0..9 ] ); # Math::String "9999" print "\$dn"; # string "00000n" print \$d->as_number(),"n"; # Math::BigInt "+11111" print \$d->last(5),"n"; # string "99999" print \$d->first(3),"n"; # string "111" print \$d->length(),"n"; # faster than length("\$d"); \$d = Math::String->new ( , Math::String::Charset->new ( { minlen => 2, start => [ a..z ], } ); print \$d->minlen(),"n"; # print 2 print ++\$d,"n"; # print aa.

 Requirements: No special requirements Platforms: Linux Keyword: Arbitrary,  D-,  Libraries,  Mathstring,  New,  Print,  Programming Users rating: 0/10