CGAL::compare

Definition

The function compare compares two numbers to see which is larger or smaller or if they are equal.

#include <CGAL/number_utils.h>

template <class NT1, class NT2>
Comparison_result compare ( NT1 n1, NT2 n2)
returns LARGER iff n1>n2, SMALLER iff n1<n2, and EQUAL otherwise.