Jsctypes/api: Difference between revisions

Jump to navigation Jump to search
Line 349: Line 349:
== Int64 ==
== Int64 ==


:'''<code>ctypes.Int64(''n'')</code>''' or '''<code>new ctypes.Int64(''n'')</code>''' - If ''n'' is an integer-valued number such that -2<sup>63</sup> &le; ''n'' &lt; 2<sup>63</sup>, return a sealed <code>Int64</code> object with that value. Otherwise throw a <code>TypeError</code>.
:'''<code>ctypes.Int64(''n'')</code>''' or '''<code>new ctypes.Int64(''n'')</code>''' - If ''n'' is an integer-valued number such that -2<sup>63</sup> &le; ''n'' &lt; 2<sup>63</sup>, return a sealed <code>Int64</code> object with that value. Otherwise if ''n'' is a decimal or hexadecimal string, optionally with a leading minus sign and representing a number within range, convert the string to an integer and construct an Int64 object from it. Otherwise if ''n'' is an Int64 or UInt64 object, and represents a number within range, construct from that object. Otherwise throw a <code>TypeError</code>.


<code>Int64</code> objects have the following methods:
<code>Int64</code> objects have the following methods:
148

edits

Navigation menu