This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document string- and number-specific bitops in perlop
[perl5.git] / dist / Math-BigInt / t / const_mbf.t
CommitLineData
091c87b1
T
1#!/usr/bin/perl -w
2
3# test BigFloat constants alone (w/o BigInt loading)
4
5use strict;
3167abe5 6use Test::More tests => 2;
091c87b1
T
7
8use Math::BigFloat ':constant';
9
3167abe5 10is (1.0 / 3.0, '0.3333333333333333333333333333333333333333');
091c87b1 11
3167abe5
NC
12# BigInt was not loaded with ':constant', so only floats are handled
13is (ref(2 ** 2),'');
091c87b1 14