Click or drag to resize

UInt128  Conversion (UInt128 to UInt64)

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

Namespace:  Meta.Numerics.Extended
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static explicit operator ulong (
	UInt128 u
)

Parameters

u
Type: Meta.Numerics.ExtendedUInt128
The unsigned 128-bit integer.

Return Value

Type: 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