public function readFloat32()
    {

        // Read the data into a string
        $string = $this->read(4);

        // For big endian we need to reverse the bytes
        if ($this->number_type == self::NUMBER_TYPE_BIGENDIAN) {
            $string = strrev($string);
        }

        $float = unpack('ffloat', $string);

        unset($string);

        return $float['float'];
    }
public function readFloat32()
    {

        // Read the data into a string
        $string = $this->read(4);

        // For big endian we need to reverse the bytes
        if ($this->number_type == self::NUMBER_TYPE_BIGENDIAN) {
            $string = strrev($string);
        }

        $float = unpack('ffloat', $string);

        unset($string);

        return $float['float'];
    }
public function readFloat32 ( ) { // Read the data into a string $ string = $ this -> read ( 4 ) ; // For big endian we need to reverse the bytes if ( $ this -> number_type == self :: NUMBER_TYPE_BIGENDIAN ) { $ string = strrev ( $ string ) ; } $ float = unpack ( 'ffloat' , $ string ) ; unset ( $ string ) ; return $ float [ 'float' ] ; }
Read a 32-bit float

@return float
@throws \GameQ\Exception\Protocol
Read a 32 - bit float