PartKeepr\PartBundle\Entity\PartParameter::recalculateRawValue PHP Method

recalculateRawValue() private method

private recalculateRawValue ( )
    private function recalculateRawValue()
    {
        if (is_object($this->getSiPrefix())) {
            $power = $this->getSiPrefix()->getExponent();
        } else {
            $power = 0;
        }
        $this->rawValue = $this->getValue() * pow(10, $power);
    }