</pre></div></div></div><scripttype="text/javascript">AddLanguageTabSet("ID0EDCA");</script><h4class="subHeading">Parameters</h4><dl><dt><spanclass="parameter">op</span></dt><dd>Type:<ahref="8beda7fb-bbc4-b56f-fd1f-1459377ecb3b.htm">Math.Gmp.Native<spanid="LSTCA003B00_1"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LSTCA003B00_1?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>mpz_t</a><br/>The integer.</dd></dl><h4class="subHeading">Return Value</h4>Type:<ahref="http://msdn2.microsoft.com/en-us/library/643eft0t"target="_blank">Double</a><br/><spanclass="parameter">op</span> as a double, truncating it if necessary (i.e. rounding towards zero).</div><divclass="collapsibleAreaRegion"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID2RB')"onkeypress="SectionExpandCollapse_CheckKey('ID2RB', event)"tabindex="0"><imgid="ID2RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>Remarks</span></div><divid="ID2RBSection"class="collapsibleSection"><p>
If the exponent from the conversion is too big, the result is system dependent. An infinity is returned
where available. A hardware overflow trap may or may not occur.
</p></div><divclass="collapsibleAreaRegion"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID3RB')"onkeypress="SectionExpandCollapse_CheckKey('ID3RB', event)"tabindex="0"><imgid="ID3RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>Examples</span></div><divid="ID3RBSection"class="collapsibleSection"><divclass="codeSnippetContainer"><divclass="codeSnippetContainerTabs"><divid="ID0EDAABA_tab1"class="codeSnippetContainerTab"><ahref="#"onclick="javascript:ChangeTab('ID0EDAABA','cs','1','4');return false;">C#</a></div><divid="ID0EDAABA_tab2"class="codeSnippetContainerTab"><ahref="#"onclick="javascript:ChangeTab('ID0EDAABA','vb','2','4');return false;">VB</a></div><divid="ID0EDAABA_tab3"class="codeSnippetContainerTabPhantom"><ahref="#"onclick="javascript:ChangeTab('ID0EDAABA','cpp','3','4');return false;">C++</a></div><divid="ID0EDAABA_tab4"class="codeSnippetContainerTabPhantom"><ahref="#"onclick="javascript:ChangeTab('ID0EDAABA','fs','4','4');return false;">F#</a></div></div><divclass="codeSnippetContainerCodeContainer"><divclass="codeSnippetToolBar"><divclass="codeSnippetToolBarText"><aid="ID0EDAABA_copyCode"href="#"class="copyCodeSnippet"onclick="javascript:CopyToClipboard('ID0EDAABA');return false;"title="Copy">Copy</a></div></div><divid="ID0EDAABA_code_Div1"class="codeSnippetContainerCode"style="display: block"><prexml:space="preserve"><spanclass="highlight-comment">// Create, initialize, and set the value of x to 10.</span>
mpz_t x = <spanclass="highlight-keyword">new</span> mpz_t();
<spanclass="highlight-comment">// Release unmanaged memory allocated for x.</span>
gmp_lib.mpz_clear(x);</pre></div><divid="ID0EDAABA_code_Div2"class="codeSnippetContainerCode"style="display: none"><prexml:space="preserve"><spanclass="highlight-comment">' Create, initialize, and set the value of x to 10.</span>
<spanclass="highlight-keyword">Dim</span> x <spanclass="highlight-keyword">As</span><spanclass="highlight-keyword">New</span> mpz_t()
<spanclass="highlight-comment">' Release unmanaged memory allocated for x.</span>
gmp_lib.mpz_clear(x)</pre></div><divid="ID0EDAABA_code_Div3"class="codeSnippetContainerCode"style="display: none"><p>No code example is currently available or this language may not be supported.</p></div><divid="ID0EDAABA_code_Div4"class="codeSnippetContainerCode"style="display: none"><p>No code example is currently available or this language may not be supported.</p></div></div></div><scripttype="text/javascript">AddLanguageTabSet("ID0EDAABA");</script></div><divclass="collapsibleAreaRegion"id="seeAlsoSection"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID4RB')"onkeypress="SectionExpandCollapse_CheckKey('ID4RB', event)"tabindex="0"><imgid="ID4RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>See Also</span></div><divid="ID4RBSection"class="collapsibleSection"><h4class="subHeading">Reference</h4><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm">gmp_lib Class</a></div><divclass="seeAlsoStyle"><ahref="d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm">Math.Gmp.Native Namespace</a></div><divclass="seeAlsoStyle"><ahref="74e22b4c-fa79-f5f9-b752-da41bd427f37.htm">gmp_lib<spanid="LSTCA003B00_2"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LSTCA003B00_2?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>mpz_get_d_2exp(Int32<spanid="LSTCA003B00_3"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LSTCA003B00_3?cpp=%");</script>, mpz_t)</a></div><divclass="seeAlsoStyle"><ahref="da585eac-be2c-38ea-8be5-90c5be95ae86.htm">gmp_lib<spanid="LSTCA003B00_4"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LSTCA003B00_4?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>mpz_get_si(mpz_t)</a></div><divclass="seeAlsoStyle"><ahref="54c1f778-6fc8-0056-6f25-26f6754645fb.htm">gmp_lib<spanid="LSTCA003B00_5"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LSTCA003B00_5?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>mpz_get_str(char_ptr, Int32, mpz_t)</a></div><divclass="seeAlsoStyle"><ahref="3a92eddc-59f3-b42f-9921-4e1cc5700d60.htm">gmp_lib<spanid="LSTCA003B00_6"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LSTCA003B00_6?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>mpz_get_ui(mpz_t)</a></div><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm"><ahref="https://gmplib.org/manual/Converting-Integers.html#Converting-Integers">GNU MP - Converting Integers</a></a></div></div></div></div><divid="pageFooter"class="pageFooter"></div></body></html>