[#absl-int128-2constructor-040]
= xref:absl.adoc[absl]::xref:absl/int128.adoc[int128]::int128
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;absl&sol;numeric&sol;int128&period;h&gt;`

Constructs an `int128` with an unspecified value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128/2constructor-042.adoc[int128]() = default;
----

[.small]#xref:absl/int128/2constructor-042.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from a signed `&lowbar;&lowbar;int128` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128/2constructor-06.adoc[int128](&lowbar;&lowbar;int128 v);
----

[.small]#xref:absl/int128/2constructor-06.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from a `double` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
xref:absl/int128/2constructor-01b.adoc[int128](double v);
----

[.small]#xref:absl/int128/2constructor-01b.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from a `float` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
xref:absl/int128/2constructor-02.adoc[int128](float v);
----

[.small]#xref:absl/int128/2constructor-02.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from a signed `int` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128/2constructor-00.adoc[int128](int v);
----

[.small]#xref:absl/int128/2constructor-00.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from a signed `long` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128/2constructor-050.adoc[int128](long v);
----

[.small]#xref:absl/int128/2constructor-050.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from a `long double` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
xref:absl/int128/2constructor-0e.adoc[int128](long double v);
----

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

Constructs an `int128` from a signed `long long` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128/2constructor-0b.adoc[int128](long long v);
----

[.small]#xref:absl/int128/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from an unsigned `uint128` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
xref:absl/int128/2constructor-03f.adoc[int128](xref:absl/uint128.adoc[uint128] v);
----

[.small]#xref:absl/int128/2constructor-03f.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from an `unsigned &lowbar;&lowbar;int128` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
xref:absl/int128/2constructor-05b.adoc[int128](unsigned &lowbar;&lowbar;int128 v);
----

[.small]#xref:absl/int128/2constructor-05b.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from an `unsigned int` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128/2constructor-03e.adoc[int128](unsigned int v);
----

[.small]#xref:absl/int128/2constructor-03e.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from an `unsigned long` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128/2constructor-012.adoc[int128](unsigned long v);
----

[.small]#xref:absl/int128/2constructor-012.adoc[_» more&period;&period;&period;_]#

Constructs an `int128` from an `unsigned long long` value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/int128/2constructor-0d.adoc[int128](unsigned long long v);
----

[.small]#xref:absl/int128/2constructor-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The value to convert&period;
|===


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