"Sputnik" help  
Sputnik Help
DoubleAsUInt64(<value>)

Description

Reinterprets the bits of a double as an unsigned 64-bit integer.

Parameters

<value> The double value to reinterpret.

Return Value

Success: Returns the unsigned 64-bit integer representation of the double value.
Failure: Returns mull.

Remarks

The DoubleAsUInt64 function allows you to reinterpret the bits of a double value as an unsigned 64-bit integer. It performs a bitwise conversion without changing the actual numeric value of the double. This function can be useful for low-level bit manipulation or when you need to extract the bit pattern of a double value as an unsigned integer.

Related

Example

Example of usage:

my $v = UInt64AsDouble(777);
say $v;
my $m = DoubleAsUInt64($v);
say $m;

// PRINTS
// 3.83889006818649E-321
// 777

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org