CGAL 5.2.1 - Number Types
Number Types Reference
Michael Hemmer, Susan Hert, Sylvain Pion, and Stefan Schirra
This package provides number type concepts as well as number type classes and wrapper classes for third party number type libraries.
Introduced in: CGAL 1.0
BibTeX: cgal:hhkps-nt-21a

## Number Type Classes and Concepts

### CORE

• CORE::BigInt
• CORE::BigRat
• CORE::BigFloat
• CORE::Expr

### LEDA

• leda_integer
• leda_rational
• leda_bigfloat
• leda_real

### GMP

• mpz_class
• mpq_class
• CGAL::Mpzf
• CGAL::Gmpz
• CGAL::Gmpq
• CGAL::Gmpzf
• CGAL::Gmpfr
• CGAL::Gmpfi

### CGAL

• CGAL::MP_Float
• CGAL::Interval_nt<Protected>
• CGAL::Lazy_exact_nt<NT>
• CGAL::Quotient<NT>
• CGAL::Number_type_checker<NT1,NT2,Comparator>
• CGAL::Exact_integer
• CGAL::Exact_rational

## Relates Rational

• CGAL::Rational_traits<NT>
• CGAL::simplest_rational_in_interval()
• CGAL::to_rational()

## Relates Algebraic Extensions

• RootOf_2
• CGAL::Root_of_traits<RT>
• CGAL::make_root_of_2<RT>
• CGAL::make_sqrt<RT>
• CGAL::compute_roots_of_2<RT,OutputIterator>
• CGAL::Sqrt_extension<NT,ROOT>

## Utilities

• CGAL::Min<T,Less>
• CGAL::Max<T,Less>
• CGAL::Is_valid<T>
• CGAL::min()
• CGAL::max()
• CGAL::is_valid()
• CGAL::Set_ieee_double_precision
• CGAL::Protect_FPU_rounding<Protected>

## Modules

Concepts

Built-in types

CORE

LEDA

GMP

CGAL Number Types

Relates Rational

Relates Algebraic Extensions

Utilities

## Macros

#define CGAL_PI   3.14159265358979323846
an approximation of $$\pi$$