How can I convert a string varaible containing the hex value for a floating point number into a floating point variable.

Example:

$hex = "45871b9c";
$float = somefunction($hex);
echo "$float";


And I should get 4323.4512.

Thanks.