Int128.opCast

bool opCast(T : bool)() const

Support casting to a bool

Parameters

Tbool

Returns

true if value is not zero
T opCast(T : long)() if (is(byte : T)) const

Support casting to an integral type

Parameters

Tintegral type

Returns

low bits of value reinterpreted as T
T opCast(T : real)() const

Support casting to floating point type

Parameters

Tfloating point type

Returns

value cast to floating point with environment-dependent

rounding if the value is not exactly representable