UInt128   Conversion (UInt128 to UInt64)

Converts an unsigned 128-bit integer into an unsigned 64-bit integer.

Definition

Namespace: Meta.Numerics.Extended
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static explicit operator ulong (
	UInt128 u
)

Parameters

u  UInt128
The unsigned 128-bit integer.

Return Value

UInt64
The unsigned 64-bit integer with the same lower 64 bits.

Remarks

This is x narrowing cast, which discards high-order bits if the 128-bit integer is greater than MaxValue.

See Also