$fractionbitstring =
str_pad(substr($normalizedbinary['normalized'
], 2
),
$fractionbits, '0', STR_PAD_RIGHT
);
return self::
BigEndian2String(self::
Bin2Dec($signbit.
$exponentbitstring.
$fractionbitstring),
$bits % 8, false
);
} /**
* @param string $byteword
*
* @return float|false
*/
public static function LittleEndian2Float($byteword) { return self::
BigEndian2Float(strrev($byteword));
} /**
* ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic
*
* @link https://web.archive.org/web/20120325162206/http://www.psc.edu/general/software/packages/ieee/ieee.php
* @link http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/ieee.html
*
* @param string $byteword
*
* @return float|false
*/