Core Function FHex

From Sputnik Wiki
Revision as of 06:53, 11 November 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
FHex( <expression> )

Contents

Description

Returns a string representation of an float type converted to hexadecimal.

Parameters

expression

The expression to convert.

Return Value

Success: Returns a string of length characters, zero-padded if necessary for integer.

Failure: Returns "" (blank string).

Remarks

The function only works with numbers that fit in a 32 bit signed floating point.

Example

$lol = (float)1337.42
$fHex = fHex($lol)
$fDec = fDec($fHex)
println( "FLOAT HEX: " . $fHex ) ; Prints 44A72D71
println( "FLOAT DEC: " . $fDec ) ; Prints 1337.42004394531
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox