numerator
numerator()
Returns a copy of the numerator as a signed BigInt:
my $rat = Math::BigRat->new('2/7'), print $rat->numerator(), " "; # Prints 2
3.145.111.92