Math.Gmp.Native/docs/html/0c44ebce-9678-a295-598a-588...

13 lines
11 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<html><head><meta http-equiv="X-UA-Compatible" content="IE=edge" /><link rel="shortcut icon" href="../icons/favicon.ico" /><link rel="stylesheet" type="text/css" href="../styles/branding.css" /><link rel="stylesheet" type="text/css" href="../styles/branding-en-US.css" /><script type="text/javascript" src="../scripts/branding.js"> </script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>mp_exp_t Explicit Conversion (mp_exp_t to Int16)</title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="mp_exp_t to Int16 conversion" /><meta name="Microsoft.Help.Id" content="M:Math.Gmp.Native.mp_exp_t.op_Explicit(Math.Gmp.Native.mp_exp_t)~System.Int16" /><meta name="Description" content="Converts an mp_exp_t value to an Int16 value." /><meta name="Microsoft.Help.ContentType" content="Reference" /><meta name="BrandingAware" content="true" /><meta name="container" content="Math.Gmp.Native" /><meta name="file" content="0c44ebce-9678-a295-598a-588046225af2" /><meta name="guid" content="0c44ebce-9678-a295-598a-588046225af2" /><link rel="stylesheet" type="text/css" href="../styles/branding-Website.css" /><script type="text/javascript" src="../scripts/jquery-1.11.0.min.js"></script><script type="text/javascript" src="../scripts/branding-Website.js"></script><script type="text/javascript" src="../scripts/clipboard.min.js"></script></head><body onload="OnLoad('cs')"><input type="hidden" id="userDataCache" class="userDataStyle" /><div class="pageHeader" id="PageHeader">GMP Native Interface for .NET<form id="SearchForm" method="get" action="#" onsubmit="javascript:TransferToSearchPage(); return false;"><input id="SearchTextBox" type="text" maxlength="200" /><button id="SearchButton" type="submit"></button></form></div><div class="pageBody"><div class="leftNav" id="leftNav"><div id="tocNav"><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="846f5c8a-6cba-433e-9f18-cde2ff5695cd.htm" title="GMP Native Interface for .NET" tocid="roottoc">GMP Native Interface for .NET</a></div><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm" title="Math.Gmp.Native" tocid="d9c51b9f-0c54-770b-28ea-6eebd8fef368">Math.Gmp.Native</a></div><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="e6a17880-791f-37d4-4942-cf26ce7d4cbf.htm" title="mp_exp_t Structure" tocid="e6a17880-791f-37d4-4942-cf26ce7d4cbf">mp_exp_t Structure</a></div><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="d0d07662-13f1-e033-9619-1c9f89c37939.htm" title="mp_exp_t Operators and Type Conversions" tocid="d0d07662-13f1-e033-9619-1c9f89c37939">mp_exp_t Operators and Type Conversions</a></div><div class="toclevel1" data-toclevel="1" data-childrenloaded="true"><a class="tocExpanded" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="021c96a1-51fa-2b2a-4c65-7ae3bb374c33.htm" title="Explicit Conversion Operators" tocid="021c96a1-51fa-2b2a-4c65-7ae3bb374c33">Explicit Conversion Operators</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="70eabcfd-22ae-e08e-1bc5-54f8e1ccb736.htm" title="Explicit Conversion (Int64 to mp_exp_t)" tocid="70eabcfd-22ae-e08e-1bc5-54f8e1ccb736">Explicit Conversion (Int64 to mp_exp_t)</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="78fdf4c2-15a1-fdab-23fa-806cdf3dc983.htm" title="Explicit Conversion (UInt32 to mp_exp_t)" tocid="78fdf4c2-15a1-fdab-23fa-806cdf3dc983">Explicit Conversion (UInt32 to mp_exp_t)</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="6b879622-df00-c9b2-deba-307574416ff2.htm" title="Explicit Conversion (UInt64 to mp_exp_t)" tocid="6b879622-df00-c9b2-deba-307574416ff2">Explicit Conversion (UInt64 to mp_exp_t)</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="a5c30e13-40af-5fb4-97fa-75f4653eccee.htm" title="Explicit Conversion (mp_exp_t to Byte)" tocid="a5c30e13-40af-5fb4-97fa-75f4653eccee">Explicit Conversion (mp_exp_t to Byte)</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="2c30c503-671c-e6f1-38a8-3a42f51f8019.htm" title="Explicit Conversion (mp_exp_t to SByte)" tocid="2c30c503-671c-e6f1-38a8-3a42f51f8019">Explicit Conversion (mp_exp_t to SByte)</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="92ffc71c-a4b3-4367-ba65-25b82d7e5cfd.htm" title="Explicit Conversion (mp_exp_t to UInt16)" tocid="92ffc71c-a4b3-4367-ba65-25b82d7e5cfd">Explicit Conversion (mp_exp_t to UInt16)</a></div><div class="toclevel2 current" data-toclevel="2"><a data-tochassubtree="false" href="0c44ebce-9678-a295-598a-588046225af2.htm" title="Explicit Conversion (mp_exp_t to Int16)" tocid="0c44ebce-9678-a295-598a-588046225af2">Explicit Conversion (mp_exp_t to Int16)</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="6b71bf90-ded3-6f2b-f59b-19b7e3442ef4.htm" title="Explicit Conversion (mp_exp_t to UInt32)" tocid="6b71bf90-ded3-6f2b-f59b-19b7e3442ef4">Explicit Conversion (mp_exp_t to UInt32)</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="bb3fdf5b-8b0e-e922-a1bd-cd337a89f971.htm" title="Explicit Conversion (mp_exp_t to UInt64)" tocid="bb3fdf5b-8b0e-e922-a1bd-cd337a89f971">Explicit Conversion (mp_exp_t to UInt64)</a></div></div><div id="tocResizableEW" onmousedown="OnMouseDown(event);"></div><div id="TocResize" class="tocResize"><img id="ResizeImageIncrease" src="../icons/TocOpen.gif" onclick="OnIncreaseToc()" alt="Click or drag to resize" title="Click or drag to resize" /><img id="ResizeImageReset" src="../icons/TocClose.gif" style="display:none" onclick="OnResetToc()" alt="Click or drag to resize" title="Click or drag to resize" /></div></div><div class="topicContent" id="TopicContent"><table class="titleTable"><tr><td class="titleColumn">mp_exp_t <span id="LST9EE24AED_0"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST9EE24AED_0?vb=Narrowing|nu=Explicit");</script> Conversion (mp_exp_t to Int16)</td></tr></table><span class="introStyle"></span> <div class="summary">
Converts an <a href="e6a17880-791f-37d4-4942-cf26ce7d4cbf.htm">mp_exp_t</a> value to an <a href="http://msdn2.microsoft.com/en-us/library/e07e6fds" target="_blank">Int16</a> value.
</div><p> </p>
<strong>Namespace:</strong>
 <a href="d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm">Math.Gmp.Native</a><br />
<strong>Assembly:</strong>
 Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)<div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID1RB')" onkeypress="SectionExpandCollapse_CheckKey('ID1RB', event)" tabindex="0"><img id="ID1RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Syntax</span></div><div id="ID1RBSection" class="collapsibleSection"><div class="codeSnippetContainer"><div class="codeSnippetContainerTabs"><div id="ID0EDCA_tab1" class="codeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EDCA','cs','1','4');return false;">C#</a></div><div id="ID0EDCA_tab2" class="codeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EDCA','vb','2','4');return false;">VB</a></div><div id="ID0EDCA_tab3" class="codeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EDCA','cpp','3','4');return false;">C++</a></div><div id="ID0EDCA_tab4" class="codeSnippetContainerTab"><a href="#" onclick="javascript:ChangeTab('ID0EDCA','fs','4','4');return false;">F#</a></div></div><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetToolBar"><div class="codeSnippetToolBarText"><a id="ID0EDCA_copyCode" href="#" class="copyCodeSnippet" onclick="javascript:CopyToClipboard('ID0EDCA');return false;" title="Copy">Copy</a></div></div><div id="ID0EDCA_code_Div1" class="codeSnippetContainerCode" style="display: block"><pre xml:space="preserve"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">explicit operator</span> <span class="identifier">short</span> (
<span class="identifier">mp_exp_t</span> <span class="parameter">value</span>
)</pre></div><div id="ID0EDCA_code_Div2" class="codeSnippetContainerCode" style="display: none"><pre xml:space="preserve"><span class="keyword">Public</span> <span class="keyword">Shared</span> <span class="keyword">Narrowing</span> <span class="keyword">Operator</span> <span class="identifier">CType</span> (
<span class="parameter">value</span> <span class="keyword">As</span> <span class="identifier">mp_exp_t</span>
) <span class="keyword">As</span> <span class="identifier">Short</span></pre></div><div id="ID0EDCA_code_Div3" class="codeSnippetContainerCode" style="display: none"><pre xml:space="preserve"><span class="keyword">static</span> <span class="keyword">explicit operator</span> <span class="identifier">short</span> (
<span class="identifier">mp_exp_t</span> <span class="parameter">value</span>
)</pre></div><div id="ID0EDCA_code_Div4" class="codeSnippetContainerCode" style="display: none"><pre xml:space="preserve"><span class="message">F# does not support the declaration of new casting operators.</span></pre></div></div></div><script type="text/javascript">AddLanguageTabSet("ID0EDCA");</script><h4 class="subHeading">Parameters</h4><dl><dt><span class="parameter">value</span></dt><dd>Type: <a href="e6a17880-791f-37d4-4942-cf26ce7d4cbf.htm">Math.Gmp.Native<span id="LST9EE24AED_1"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST9EE24AED_1?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>mp_exp_t</a><br />An <a href="e6a17880-791f-37d4-4942-cf26ce7d4cbf.htm">mp_exp_t</a> value.</dd></dl><h4 class="subHeading">Return Value</h4>Type: <a href="http://msdn2.microsoft.com/en-us/library/e07e6fds" target="_blank">Int16</a><br />An <a href="http://msdn2.microsoft.com/en-us/library/e07e6fds" target="_blank">Int16</a> value.</div><div class="collapsibleAreaRegion" id="seeAlsoSection"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID2RB')" onkeypress="SectionExpandCollapse_CheckKey('ID2RB', event)" tabindex="0"><img id="ID2RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />See Also</span></div><div id="ID2RBSection" class="collapsibleSection"><h4 class="subHeading">Reference</h4><div class="seeAlsoStyle"><a href="e6a17880-791f-37d4-4942-cf26ce7d4cbf.htm">mp_exp_t Structure</a></div><div class="seeAlsoStyle"><a href="021c96a1-51fa-2b2a-4c65-7ae3bb374c33.htm"><span id="LST9EE24AED_2"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST9EE24AED_2?cs=Explicit|vb=Narrowing|cpp=Explicit|nu=Explicit|fs=Explicit");</script> Overload</a></div><div class="seeAlsoStyle"><a href="d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm">Math.Gmp.Native Namespace</a></div></div></div></div><div id="pageFooter" class="pageFooter"> </div></body></html>