src/Binary/StreamWriter.php
public function writeDouble(Stream $stream, $value)
    {
        $bytes = pack('d*', $value);

        if ($this->isBigEndian) {
            $bytes = strrev($bytes);
        }

        $this->writeBytes($stream, $bytes, 8);
    }
public function writeDouble(Stream $stream, $value)
    {
        $bytes = pack('d*', $value);

        if ($this->isBigEndian) {
            $bytes = strrev($bytes);
        }

        $this->writeBytes($stream, $bytes, 8);
    }
public function writeDouble ( Stream $ stream , $ value ) { $ bytes = pack ( 'd*' , $ value ) ; if ( $ this -> isBigEndian ) { $ bytes = strrev ( $ bytes ) ; } $ this -> writeBytes ( $ stream , $ bytes , 8 ) ; }
Encode a number as a 64bit double.

@param \Protobuf\Stream $stream
@param float            $value
Encode a number as a 64bit double .