<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Sarad:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>For logarithms, I believe you'll need the mpfr library: <A href="http://www.mpfr.org">http://www.mpfr.org</A>/. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>For the conversion to string, you can use mpz_get_str, which will convert the op to a string.  For more info on this check out the gmp-man: <A href="http://gmplib.org/#DOC">http://gmplib.org/#DOC</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Happy hunting!</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Blake Huff</DIV><DIV><A href="mailto:stangmechanic@gmail.com">stangmechanic@gmail.com</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>"The CH-47D: Because anything else is just a sling load"</DIV><DIV><BR class="khtml-block-placeholder"></DIV></SPAN><BR class="Apple-interchange-newline"></SPAN><SPAN></SPAN><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR><DIV><DIV>On May 21, 2007, at 11:26 AM, Sarad AV wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR clear="all">Hello,<BR><BR>-Does GMP support any C library calls to find natural logarithms or logartithms to the base 10.<BR><BR>-I  would like to convert an a mpz_t variable to a character string, so that I can pass it as a string to another library like PARI on Zenfact. I am unable to find a library call, that does it for me and I guess sscanf(), can be used either. There is the mpz_set_str() but it does the reverse of what i am looking for. <BR><BR>Thank you for your time,<BR>Sarad AV<BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">gmp-discuss mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:gmp-discuss@swox.com">gmp-discuss@swox.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://gmplib.org/mailman/listinfo/gmp-discuss">https://gmplib.org/mailman/listinfo/gmp-discuss</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>