Math::BigFloat man page on BSDOS

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDOS logo
[printable version]



Math::BigFloat(3)Perl Programmers Reference GuidMath::BigFloat(3)

NAME
       Math::BigFloat - Arbitrary length float math package

SYNOPSIS
	 use Math::BigFloat;
	 $f = Math::BigFloat->new($string);

	 $f->fadd(NSTR) return NSTR	       addition
	 $f->fsub(NSTR) return NSTR	       subtraction
	 $f->fmul(NSTR) return NSTR	       multiplication
	 $f->fdiv(NSTR[,SCALE]) returns NSTR   division to SCALE places
	 $f->fneg() return NSTR		       negation
	 $f->fabs() return NSTR		       absolute value
	 $f->fcmp(NSTR) return CODE	       compare undef,<0,=0,>0
	 $f->fround(SCALE) return NSTR	       round to SCALE digits
	 $f->ffround(SCALE) return NSTR	       round at SCALEth place
	 $f->fnorm() return (NSTR)	       normalize
	 $f->fsqrt([SCALE]) return NSTR	       sqrt to SCALE places

DESCRIPTION
       All basic math operations are overloaded if you declare
       your big floats as

	   $float = new Math::BigFloat "2.123123123123123123123123123123123";

       number format
	 canonical strings have the form /[+-]\d+E[+-]\d+/ .
	 Input values can have imbedded whitespace.

       Error returns 'NaN'
	 An input parameter was "Not a Number" or divide by zero
	 or sqrt of negative number.

       Division is computed to
	 max($div_scale,length(dividend)+length(divisor)) digits
	 by default.  Also used for default sqrt scale.

BUGS
       The current version of this module is a preliminary
       version of the real thing that is currently (as of
       perl5.002) under development.

AUTHOR
       Mark Biggar

16/Sep/1999	       perl 5.005, patch 03			1

Math::BigFloat(3)Perl Programmers Reference GuidMath::BigFloat(3)

16/Sep/1999	       perl 5.005, patch 03			2

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server BSDOS

List of man pages available for BSDOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net