Returns the real value object.
541834
public Object getRealValue()
    {
        if(valueRealSubject != null)
        {
            return valueRealSubject;
        }
        else
        {
            TransactionExt tx = getTransaction();

            if((tx != null) && tx.isOpen())
            {
                prepareValueRealSubject(tx.getBroker());
            }
            else
            {
                if(getPBKey() != null)
                {
                    PBCapsule capsule = new PBCapsule(getPBKey(), null);

                    try
                    {
                        prepareValueRealSubject(capsule.getBroker());
                    }
                    finally
                    {
                        capsule.destroy();
                    }
                }
                else
                {
                    getLog().warn("No tx, no PBKey - can't materialise value with Identity " + getKeyOid());
                }
            }
        }
        return valueRealSubject;
    }
1287966
def real=(value)
      if typecode < COMPLEX_
        decompose( 0 )[] = value
      elsif typecode == OBJECT
        self[] = Hornetseye::lazy do
          value + imag * Complex::I
        end
      else
        self[] = value
      end
    end
526946
def get_value(self):
        """"""

        if self.data_type == self.BOOLEAN_TYPE:
            return self.value_boolean
        elif self.data_type == self.NUMBER_TYPE:
            return self.value_number
        elif self.data_type == self.SSH_KEY_TYPE:
            return self.value_ssh_key.private_key_file._get_path()
        else:
            return self.value
533742
def getValue(self, unit=None):
        

        if unit or self.unit:
            r = float(self.value * UnitToValue(self.unit)) / UnitToValue(unit)
            return int(round(r)) if isinstance(self.value, int) else r
        return self.value
1153306
public function getRealValue()
    {
        if(Coroutine::isIn())
        {
            return RequestContext::getBean($this->name, ...$this->args);
        }
        else
        {
            return App::getBean($this->name, ...$this->args);
        }
    }
1259346
def raw_value(self) -> typing.Optional[object]:
        
        raw_value = self._from_environ()
        if raw_value is None:
            raw_value = self._from_config_file()
        if raw_value is None:
            raw_value = self._from_default()
        return raw_value
1124359
def value(self):
        
        try:
            value = self.lastValue
        except IndexError:
            value = "NaN"
        except ValueError:
            value = "NaN"
        return value
201142
def getvalue(self) -> str:
        """"""
        return self.buffer.byte_buf.decode(encoding=self.encoding, errors=self.errors)
491045
public function getValue() {
        $value = parent::getValue();
        if ($value) {
            $value = unformat_float($value, true);
        }
        return $value;
    }
235234
def value_from_object(self, obj):
        """"""
        val = super(JSONField, self).value_from_object(obj)
        return self.get_prep_value(val)
563703
def get_value(cls, object_version, key):
        """"""
        obj = cls.get(object_version, key)
        return obj.value if obj else None
1158866
def _isreal(obj):
    
    # pylint: disable=W0702
    if (obj is None) or isinstance(obj, bool):
        return False
    try:
        cond = (int(obj) == obj) or (float(obj) == obj)
    except:
        return False
    return cond
179148
private Object getPropertyValue(GDLParser.LiteralContext literalContext) {
    String text;
    if (literalContext.StringLiteral() != null) {
      return parseString(literalContext.StringLiteral().getText());
    } else if (literalContext.BooleanLiteral() != null) {
      return Boolean.parseBoolean(literalContext.BooleanLiteral().getText());
    } else if (literalContext.IntegerLiteral() != null) {
      text = literalContext.IntegerLiteral().getText().toLowerCase();
      if (text.endsWith("l")) {
        return Long.parseLong(text.substring(0, text.length() - 1));
      }
      return Integer.parseInt(text);
    } else if (literalContext.FloatingPointLiteral() != null) {
      text = literalContext.FloatingPointLiteral().getText().toLowerCase();
      if (text.endsWith("f")) {
        return Float.parseFloat(text.substring(0, text.length() - 1));
      } else if (text.endsWith("d")) {
        return Double.parseDouble(text.substring(0, text.length() - 1));
      }
      return Float.parseFloat(text);
    }
    return null;
  }
539043
public double getValue()
    {
        Object objData = this.getData();
        if (objData != null)
        {
            Class<?> classData = this.getDataClass();
            if (classData != Object.class)
                if (classData == objData.getClass())
            {
                if (classData == Short.class)
                    return ((Short)objData).shortValue();
                else if (classData == Integer.class)
                    return ((Integer)objData).intValue();
                else if (classData == Float.class)
                    return ((Float)objData).floatValue();
                else if (classData == Double.class)
                    return ((Double)objData).doubleValue();
                else if (classData == java.util.Date.class)
                    return ((Date)objData).getTime();
                else if (classData == Boolean.class)
                    return (((Boolean)objData).booleanValue() ? 1 : 0);
                else if (classData != String.class)
                {
                    try   {
                        return this.stringToDouble((String)objData).doubleValue();
                    } catch (Exception ex)  { // Ignore the exception
                    }
                }
                }
        }
        return super.getValue();    // Return a 0
    }
1365491
def set_real(_bytearray, byte_index, real):
    
    real = float(real)
    real = struct.pack('>f', real)
    _bytes = struct.unpack('4B', real)
    for i, b in enumerate(_bytes):
        _bytearray[byte_index + i] = b
1265964
def real_space(self):
        
        if not is_numeric_dtype(self.dtype):
            raise ValueError(
                '`real_space` not defined for non-numeric `dtype`')
        return self.astype(self.real_dtype)
915224
public Object getControlValue()
    {
        Object objValue = super.getControlValue();
        if (objValue instanceof Boolean)
        {
            if (((Boolean)objValue).booleanValue())
                objValue = Constants.TRUE.toLowerCase();
            else
                objValue = Constants.FALSE.toLowerCase();
        }
        return objValue;
    }