evseevnn\Cassandra\Protocol\BinaryData::getDecimal PHP Метод

getDecimal() приватный Метод

private getDecimal ( ) : string
Результат string
    private function getDecimal()
    {
        $scaleLen = strlen(strstr($this->value, ','));
        if ($scaleLen) {
            $scaleLen -= 1;
            $this->value = str_replace(',', '', $this->value);
        }
        $highMap = 1.8446744069414584E+19;
        $lowMap = 0xffffffff;
        $higher = ($this->value & $highMap) >> 32;
        $lower = $this->value & $lowMap;
        return pack('NNN', $scaleLen, $higher, $lower);
    }