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

Description

Converts a 32-bit unsigned integer to a single-precision floating-point number.

Parameters

<value> The 32-bit unsigned integer to be converted.

Return Value

Success: Returns the single-precision floating-point number equivalent to the input integer.
Failure: Returns null.

Remarks

This function reinterprets the bits of the input integer as a single-precision floating-point number. It can be useful when working with low-level data manipulation or when converting between different numeric representations.

Related

Example

Example of usage:

my $v = UInt32AsFloat(777);
say $v;
my $m = FloatAsUInt32($v);
say $m;

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

 


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