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

Description

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

Parameters

<value> The double value to reinterpret.

Return Value

Success: Returns the signed 64-bit integer representation of the double value.
Failure: Returns null.

Remarks

The DoubleAsInt64 function allows you to reinterpret the bits of a double value as a signed 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 a signed integer.

Related

Example

Example of usage:

my $v = Int64AsDouble(777);
say $v;
my $m = DoubleAsInt64($v);
say $m;

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

 


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