Function

CGAL::unit_part

Definition

The function unit_part computes the unit part of a given ring element.

The function is defined if the argument type is a model of the IntegralDomainWithoutDivision concept.

#include <CGAL/number_utils.h>

template <class NT>
NT unit_part ( NT x)

See Also

IntegralDomainWithoutDivision
AlgebraicStructureTraits::UnitPart