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

Description

Reinterprets the bits of a float as a signed 32-bit integer.

Parameters

<value> The float value to reinterpret.

Return Value

Success: Returns the signed 32-bit integer representation of the float value.
Failure: Returns null.

Remarks

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

Related

Example

Example of usage:

my $v = Int32AsFloat(777);
say $v;
my $m = FloatAsInt32($v);
say $m;

// PRINTS
// 1.088809E-42
// 777

 


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