FLINT3.7.0-dev

ca_set_d, ca_set_d_d

Synopsis#include <flint/ca.h>
void ca_set_d(ca_t res, double x, ca_ctx_t ctx)source
void ca_set_d_d(ca_t res, double x, double y, ca_ctx_t ctx)source

Sets res to the exact value of the double x, or to x + yi. A finite double becomes a dyadic rational number, \pminf becomes \pm \infty, and NaN becomes Unknown.

Cite this page

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