FLINT3.7.0-dev

radix_cmp_bn_half

Synopsis#include <flint/radix.h>
int radix_cmp_bn_half(nn_srcptr x, slong n, const radix_t radix)source

Returns -1, 0 or 1 according to whether (x, n) is less than, equal to or greater than \lfloor B^n/2 \rfloor. Requires n \ge 1. Used for rounding to nearest and for symmetric remainders.

Cite this page

The FLINT team, “radix_cmp_bn_half (radix.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/radix/radix_cmp_bn_half.html (generated 2026-10-20).