FLINT3.7.0-dev

qqbar_set_d, qqbar_set_re_im_d

Synopsis#include <flint/qqbar.h>
int qqbar_set_d(qqbar_t res, double x)source
int qqbar_set_re_im_d(qqbar_t res, double x, double y)source

Sets res to the exact value of the double x, or of x + yi, and returns 1. If an input is infinite or NaN, returns 0 and leaves res unchanged.

Cite this page

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