FLINT3.7.0-dev

FLINT_ABS, FLINT_UABS

Synopsis#include <flint/flint.h>
FLINT_ABS(x)source
FLINT_UABS(x)source

The absolute value of x, interpreted as an slong. FLINT_ABS keeps the type of x and overflows for WORD_MIN; FLINT_UABS returns a ulong and is correct for WORD_MIN.

Cite this page

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