programming-examples/perl/Datatype/Big float.pl

9 lines
190 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#/usr/bin/perl
use strict;
use warnings;
use Math::BigFloat;
my $bignum = Math::BigFloat->new(1);
print "Without BigFloat : ", 1/3, "\n";
print "With BigFloat : ", $bignum/3, "\n";