Math-Bigfloat

Math::BigFloat(3p) Perl Programmers Reference Guide Math::BigFloat(3p)

Math-Bigfloat

Math::BigFloat(3p) Perl Programmers Reference Guide Math::BigFloat(3p) # Math::BigFloat(3p) Perl Programmers Reference Guide Math::BigFloat(3p) NNAAMMEE # Math::BigFloat - arbitrary size floating point math package SSYYNNOOPPSSIISS # use Math::BigFloat; # Configuration methods (may be used as class methods and instance methods) Math::BigFloat->accuracy(); # get class accuracy Math::BigFloat->accuracy($n); # set class accuracy Math::BigFloat->precision(); # get class precision Math::BigFloat->precision($n); # set class precision Math::BigFloat->round_mode(); # get class rounding mode Math::BigFloat->round_mode($m); # set global round mode, must be one of # 'even', 'odd', '+inf', '-inf', 'zero', # 'trunc', or 'common' Math::BigFloat->config("lib"); # name of backend math library # Constructor methods (when the class methods below are used as instance # methods, the value is assigned the invocand) $x = Math::BigFloat->new($str); # defaults to 0 $x = Math::BigFloat->new('0x123'); # from hexadecimal $x = Math::BigFloat->new('0o377'); # from octal $x = Math::BigFloat->new('0b101'); # from binary $x = Math::BigFloat->from_hex('0xc. ...