[#CScriptNum-2constructor-05]
= xref:CScriptNum.adoc[CScriptNum]::CScriptNum
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Constructs from an integer value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:CScriptNum/2constructor-09.adoc[CScriptNum](int64&lowbar;t const& n);
----

[.small]#xref:CScriptNum/2constructor-09.adoc[_» more&period;&period;&period;_]#

Constructs from a byte&hyphen;vector encoding&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:CScriptNum/2constructor-0e.adoc[CScriptNum](
    std::vector&lt;unsigned char&gt; const& vch,
    bool fRequireMinimal,
    size&lowbar;t const nMaxNumSize = nDefaultMaxNumSize);
----

[.small]#xref:CScriptNum/2constructor-0e.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *n*
| Initial value&period;
| *vch*
| Little&hyphen;endian, sign&hyphen;magnitude byte encoding of the number&period;
| *fRequireMinimal*
| Whether to reject non&hyphen;minimal encodings&period;
| *nMaxNumSize*
| Maximum allowed size of `vch` in bytes&period;
|===


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