The function to_rational computes the rational number representing a given double precision floating point number.
#include <CGAL/to_rational.h>
Rational | to_rational ( double d) | computes the rational number that equals d. |
CGAL::simplest_rational_in_interval<Rational>(double d1, double d2).