src/builders/DecimalBuilder.php
public function convertBinaryFractionToDecimalFraction($mantissaByteString, $integerExponent) {
        $bits = $this->mantissaBitLength;
        $value = pow(2, $integerExponent);
        for ($i = 0; $i < $bits; $i++) {
            $curExponent = $integerExponent - 1 - $i;
            $bitPosition = $bits - $i - 1;
            $bitValue = $this->readBit($mantissaByteString, $bitPosition);
            $decValue = pow(2, $curExponent) * $bitValue;
            $value += $decValue;
        }
        return $value;
    }
public function convertBinaryFractionToDecimalFraction($mantissaByteString, $integerExponent) {
        $bits = $this->mantissaBitLength;
        $value = pow(2, $integerExponent);
        for ($i = 0; $i < $bits; $i++) {
            $curExponent = $integerExponent - 1 - $i;
            $bitPosition = $bits - $i - 1;
            $bitValue = $this->readBit($mantissaByteString, $bitPosition);
            $decValue = pow(2, $curExponent) * $bitValue;
            $value += $decValue;
        }
        return $value;
    }
public function convertBinaryFractionToDecimalFraction ( $ mantissaByteString , $ integerExponent ) { $ bits = $ this -> mantissaBitLength ; $ value = pow ( 2 , $ integerExponent ) ; for ( $ i = 0 ; $ i < $ bits ; $ i ++ ) { $ curExponent = $ integerExponent - 1 - $ i ; $ bitPosition = $ bits - $ i - 1 ; $ bitValue = $ this -> readBit ( $ mantissaByteString , $ bitPosition ) ; $ decValue = pow ( 2 , $ curExponent ) * $ bitValue ; $ value += $ decValue ; } return $ value ; }
Pubic for unit testing only.

@param type $mantissaByteString
@param type $integerExponent
Pubic for unit testing only .