MAN page from Old RedHat 5.X perl-5.004-4.i386.rpm
Math::BigFloat
Section: Perl Programmers Reference Guide (3)
Updated: perl 5.004, patch 04
Index NAME
Math::BigFloat - Arbitrary length float math package
SYNOPSIS
use Math::BogFloat; $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 bigfloats as
$float = new Math::BigFloat "2.123123123123123123123123123123123";
- number format
- canonical strings have the form /[+-]\d+E[+-]\d+/ . Input values canhave inbedded whitespace.
- Error returns `NaN'
- An input parameter was ``Not a Number'' or divide by zero or sqrt ofnegative 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 thereal thing that is currently (as of perl5.002) under development.
AUTHOR
Mark Biggar
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- BUGS
- AUTHOR
This document was created byman2html,using the manual pages.