Question about printf

Gabriel Risterucci cleyfaye at gmail.com
Sat Sep 29 09:12:47 CEST 2012


Have you checked the return value of mpq_set_str() ?

-- 
Cley Faye
http://cleyfaye.net


2012/9/29 Rajmund Csombordi <rajmund.csombordi at gmail.com>

> Hello there! I hope this mailing list is not dead :D
>
> I checked the manual, but couldn't figure out how exactly gmp_printf works.
>
> mpq_t a;
> mpq_init (a);
> mpq_set_str (a, "3.14", 0);
> gmp_printf ("%Qf\n", n);
>
> I tried with %Q, %F, and a lot other ways but neither worked. I usually got
> 0.00000 as a result.
> So how do you output floating point numbers?
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>


More information about the gmp-discuss mailing list