[#CScriptNum]
= CScriptNum
:mrdocs:

Script integer with the overflow and encoding semantics of Bitcoin&apos;s numeric opcodes&period;

== Synopsis

Declared in `&lt;script&sol;script&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CScriptNum;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CScriptNum/2constructor-05.adoc[`CScriptNum`]         [.small]#[constructor]#
| Constructors
| xref:CScriptNum/operator_assign.adoc[`operator&equals;`] 
| Assigns an integer value&period;
| xref:CScriptNum/GetInt64.adoc[`GetInt64`] 
| Returns the full 64&hyphen;bit value without clamping&period;
| xref:CScriptNum/getint.adoc[`getint`] 
| Returns the value clamped to the range of int&period;
| xref:CScriptNum/getvch.adoc[`getvch`] 
| Returns the byte&hyphen;vector encoding of this value&period;
| xref:CScriptNum/operator_bitand-04.adoc[`operator&amp;`] 
| Bitwise conjunction operators
| xref:CScriptNum/operator_and_eq-07.adoc[`operator&amp;&equals;`] 
| Bitwise conjunction assignment operators
| xref:CScriptNum/operator_plus-07.adoc[`operator&plus;`] 
| Addition operators
| xref:CScriptNum/operator_plus_eq-05.adoc[`operator&plus;&equals;`] 
| Addition assignment operators
| xref:CScriptNum/operator_minus-0b.adoc[`operator&hyphen;`] 
| Unary minus operators
| xref:CScriptNum/operator_minus_eq-0d.adoc[`operator&hyphen;&equals;`] 
| Subtraction assignment operators
| xref:CScriptNum/operator_eq-03.adoc[`operator&equals;&equals;`] 
| Equality operators
| xref:CScriptNum/operator_3way-06.adoc[`operator&lt;&equals;&gt;`] 
| Three&hyphen;way comparison operators
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CScriptNum/serialize.adoc[`serialize`] 
| Encodes an integer as a little&hyphen;endian, sign&hyphen;magnitude byte vector&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CScriptNum/nDefaultMaxNumSize.adoc[`nDefaultMaxNumSize`] 
| Default maximum size, in bytes, of a script number encoding&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
