public function setPrecision(int $precision): self
    {
        // Check range.
        if ($precision < 0 || $precision > 65) {
            throw new \RangeException(sprintf('Precision %d, should be in interval [1,65]', $precision));
        }

        $this->precision = $precision;

        return $this;
    }