Math.NET Numerics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

146 lines
13 KiB

<HTML><HEAD><TITLE>Microsoft.FSharp.Compatibility.Int32</TITLE><link rel="stylesheet" type="text/css"href="../msdn.css"></link></HEAD><BODY>
<br><dl>
<dt></dt><dd>
<h1>[<a href='../namespaces.html'>Home</a>] Module <a href='Microsoft.FSharp.Compatibility.html'>Microsoft.FSharp.Compatibility</a>.Int32 </h1><br>
</dd>
<dt></dt><dd>
<table>
<tr valign='top'><td><summary>
Basic operations on 32-bit integers. The type int32 is identical to <tt>System.Int32</tt>.
</summary>
<dt><h3>Values</h3></dt><dd>
<table width="100%%">
<tr><th width=60%>Value</th><th>Description</th></tr>
<tr valign="top"><td><pre>val abs : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns the absolute value of the argument
</summary></td></tr>
<tr valign="top"><td><pre>val add : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns the sum of a and b
</summary></td></tr>
<tr valign="top"><td><pre>val bits_of_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a 64-bit float to a raw 32-bit representation
</summary></td></tr>
<tr valign="top"><td><pre>val bits_of_float32 : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float32.html'>float32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a 32-bit float to a raw 32-bit representation
</summary></td></tr>
<tr valign="top"><td><pre>val compare : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
Compares a and b and returns 1 if a &gt; b, -1 if b &lt; a and 0 if a = b
</summary></td></tr>
<tr valign="top"><td><pre>val div : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns a divided by b
</summary></td></tr>
<tr valign="top"><td><pre>val float32_of_bits : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float32.html'>float32</a></pre></td><td><summary>
Converts a raw 32-bit representation to a 32-bit float
</summary></td></tr>
<tr valign="top"><td><pre>val float_of_bits : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
Converts a raw 32-bit representation to a 64-bit float
</summary></td></tr>
<tr valign="top"><td><pre>val logand : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Combines the binary representation of a and b by bitwise and
</summary></td></tr>
<tr valign="top"><td><pre>val lognot : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns the bitwise logical negation of a
</summary></td></tr>
<tr valign="top"><td><pre>val logor : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Combines the binary representation of a and b by bitwise or
</summary></td></tr>
<tr valign="top"><td><pre>val logxor : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Combines the binary representation of a and b by bitwise xor
</summary></td></tr>
<tr valign="top"><td><pre>val max_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns the largest 32-bit signed integer
</summary></td></tr>
<tr valign="top"><td><pre>val min_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns the smallest 32-bit signed integer
</summary></td></tr>
<tr valign="top"><td><pre>val minus_one : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
The value minus one as a System.Int32
</summary></td></tr>
<tr valign="top"><td><pre>val mul : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns a multiplied by b
</summary></td></tr>
<tr valign="top"><td><pre>val neg : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns -a
</summary></td></tr>
<tr valign="top"><td><pre>val of_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a 64-bit float to a 32-bit integer
</summary></td></tr>
<tr valign="top"><td><pre>val of_float32 : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float32.html'>float32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a 32-bit float to a 32-bit integer
</summary></td></tr>
<tr valign="top"><td><pre>val of_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a 32-bit integer to a 32-bit integer (included for ML compatability)
</summary></td></tr>
<tr valign="top"><td><pre>val of_int64 : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int64.html'>int64</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a 64-bit unsigned integer to a 32-bit integer
</summary></td></tr>
<tr valign="top"><td><pre>val of_nativeint : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__nativeint.html'>nativeint</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a 32-bit unsigned integer to a 32-bit integer
</summary></td></tr>
<tr valign="top"><td><pre>val of_string : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a string to a 32-bit integer
</summary></td></tr>
<tr valign="top"><td><pre>val of_uint32 : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__uint32.html'>uint32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Converts a 32-bit unsigned integer to a 32-bit integer
</summary></td></tr>
<tr valign="top"><td><pre>val one : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
The value one as a System.Int32
</summary></td></tr>
<tr valign="top"><td><pre>val pred : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns the predeccessor of the argument
</summary></td></tr>
<tr valign="top"><td><pre>val rem : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns the remainder of a divided by b
</summary></td></tr>
<tr valign="top"><td><pre>val shift_left : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Shifts the binary representation a by n bits to the left
</summary></td></tr>
<tr valign="top"><td><pre>val shift_right : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Shifts the binary representation a by n bits to the right; high-order empty bits are set to the sign bit
</summary></td></tr>
<tr valign="top"><td><pre>val shift_right_logical : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Shifts the binary representation a by n bits to the right; high-order bits are zero-filled
</summary></td></tr>
<tr valign="top"><td><pre>val sub : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns a minus b
</summary></td></tr>
<tr valign="top"><td><pre>val succ : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
Returns the successor of the argument
</summary></td></tr>
<tr valign="top"><td><pre>val to_float : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
Converts a 32-bit integer to a 64-bit float
</summary></td></tr>
<tr valign="top"><td><pre>val to_float32 : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float32.html'>float32</a></pre></td><td><summary>
Converts a 32-bit integer to a 32-bit float
</summary></td></tr>
<tr valign="top"><td><pre>val to_int : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
Converts a 32-bit integer to a 32-bit integer (included for ML compatability)
</summary></td></tr>
<tr valign="top"><td><pre>val to_int64 : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int64.html'>int64</a></pre></td><td><summary>
Converts a 32-bit unsigned integer to a 64-bit integer
</summary></td></tr>
<tr valign="top"><td><pre>val to_nativeint : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__nativeint.html'>nativeint</a></pre></td><td><summary>
Converts a 32-bit unsigned integer to a 32-bit integer
</summary></td></tr>
<tr valign="top"><td><pre>val to_string : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
Converts a 32-bit integer to a string
</summary></td></tr>
<tr valign="top"><td><pre>val to_uint32 : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__uint32.html'>uint32</a></pre></td><td><summary>
Converts a 32-bit integer to a 32-bit unsigned integer
</summary></td></tr>
<tr valign="top"><td><pre>val zero : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int32.html'>int32</a></pre></td><td><summary>
The value zero as a System.Int32
</summary></td></tr>
</table>
</dd>
</td></tr>
<tr valign='top'><td>
<dt><h3>See Also</h3></dt><dd>
<a href="Microsoft.FSharp.Compatibility.html">Microsoft.FSharp.Compatibility</a> </dd>
</td></tr>
</table>
</dd>
</dl>
<br /> <br/><p><i>Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using <a href='http://research.microsoft.com/fsharp/'>F# Programming Language</a> version 1.9.6.16</i></p>
</BODY></HTML>