```{index} single: bdiv; Math::GMP function ``` ```{index} single: Math::GMP::bdiv; Perl function ``` # bdiv Return the quotient and remainder of `$m / $n` as a two-element list. ## Synopsis ```perl my $x = Math::GMP->new(7); my ($q, $r) = $x->bdiv(3); # $q = 2, $r = 1 ``` Division truncates toward zero, and the remainder has the same sign as the dividend — the `tdiv_qr` convention. For non-negative remainders, combine with `mmod_gmp`.