Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

math::base85(3pm) [debian man page]

Base85(3pm)						User Contributed Perl Documentation					       Base85(3pm)

NAME
Math::Base85 - Perl extension for base 85 numbers, as referenced by RFC 1924 SYNOPSIS
use Math::Base85; $bigint = from_base85($number); $b85str = to_base85($bigint); DESCRIPTION
RFC 1924 describes a compact, fixed-size representation of IPv6 addresses which uses a base 85 number system. This module handles some of the uglier details of it. The base 85 numbers (from 0 to 84) are as follows: 0..9 A..Z a..z ! # $ % & ( ) * + - ; < = > ? @ ^ _ ` { | } ~ At the moment, there's not much in this module. But it should be sufficient for the purposes of RFC 1924. This module has a variable called $Math::Base85::base85_digits, which is a string containing the digits of the base 85 alphabet from lowest(0) to highest (~), in that order. Additionally, the following two functions are defined for general use. (They will be exported upon request.) from_base85 Parameters A string composed of valid base 85 digits. Returns A "Math::BigInt" object representing the number. to_base85 Parameters A "Math::BigInt" object. Returns A string of base 85 digits representing the number. AUTHOR
Tony Monroe <tmonroe+perl@nog.net> SEE ALSO
perl(1). perl v5.12.4 2002-08-06 Base85(3pm)

Check Out this Related Man Page

Math::BigInt::FastCalc(3pm)				 Perl Programmers Reference Guide			       Math::BigInt::FastCalc(3pm)

NAME
Math::BigInt::FastCalc - Math::BigInt::Calc with some XS for more speed SYNOPSIS
Provides support for big integer calculations. Not intended to be used by other modules. Other modules which sport the same functions can also be used to support Math::BigInt, like Math::BigInt::GMP or Math::BigInt::Pari. DESCRIPTION
In order to allow for multiple big integer libraries, Math::BigInt was rewritten to use library modules for core math routines. Any module which follows the same API as this can be used instead by using the following: use Math::BigInt lib => 'libname'; 'libname' is either the long name ('Math::BigInt::Pari'), or only the short version like 'Pari'. To use this library: use Math::BigInt lib => 'FastCalc'; Note that from Math::BigInt v1.76 onwards, FastCalc will be loaded automatically, if possible. STORAGE
FastCalc works exactly like Calc, in stores the numbers in decimal form, chopped into parts. METHODS
The following functions are now implemented in FastCalc.xs: _is_odd _is_even _is_one _is_zero _is_two _is_ten _zero _one _two _ten _acmp _len _num _inc _dec __strip_zeros _copy LICENSE
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. AUTHORS
Original math code by Mark Biggar, rewritten by Tels <http://bloodgate.com/> in late 2000. Seperated from BigInt and shaped API with the help of John Peacock. Fixed, sped-up and enhanced by Tels http://bloodgate.com 2001-2003. Further streamlining (api_version 1 etc.) by Tels 2004-2007. SEE ALSO
Math::BigInt, Math::BigFloat, Math::BigInt::GMP, Math::BigInt::FastCalc and Math::BigInt::Pari. perl v5.12.1 2010-04-26 Math::BigInt::FastCalc(3pm)
Man Page

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

AlphaNumeric String Operations

Hi :) I am writing a ksh I have a string of general format A12B3456CD78 the string is of variable length the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7) before these ending numbers are alphabets (here it is CD can even be... (3 Replies)
Discussion started by: lakshmikanth
3 Replies