bigfloat(3p) Perl Programmers Reference Guide bigfloat(3p)
bigfloat(3p) Perl Programmers Reference Guide bigfloat(3p) # bigfloat(3p) Perl Programmers Reference Guide bigfloat(3p) NNAAMMEE # bigfloat - transparent big floating point number support for Perl SSYYNNOOPPSSIISS # use bigfloat; $x = 2 + 4.5; # Math::BigFloat 6.5 print 2 ** 512 * 0.1; # Math::BigFloat 134...09.6 print inf + 42; # Math::BigFloat inf print NaN * 7; # Math::BigFloat NaN print hex("0x1234567890123490"); # Perl v5.10.0 or later { no bigfloat; print 2 ** 256; # a normal Perl scalar now } # for older Perls, import into current package: use bigfloat qw/hex oct/; print hex("0x1234567890123490"); print oct("01234567890123490"); DDEESSCCRRIIPPTTIIOONN # All numeric literals in the given scope are converted to Math::BigFloat objects. ...