WOLFRAM SYSTEM MODELER

withoutUnit

Get value of amount-of-quantity expressed in given unit

Wolfram Language

In[1]:=
SystemModel["SystemModelerExtras.Experimental.Units.withoutUnit"]
Out[1]:=

Information

The call withoutUnit(value, unit) extracts the numerical value of the value of quantity value expressed in the unit unit. The argument unit must be an evaluable String expression (typically a String literal) with valid unit syntax. The result of the withoutUnit call has empty unit (not unit "1"), making it suitable for computations that would be cumbersome to express cleanly with concrete units.

The same restrictions as for inUnit apply. The only difference is that only the numerical value of the resulting value of quantity is returned.

Syntax

numericalValue = withoutUnit(value, unit)

Inputs (2)

value

Type: Real

Description: Amount-of-quantity

unit

Type: String

Description: Unit for extracting value of 'amount'

Outputs (1)

numericalValue

Type: Real

Description: Value of 'amount' expressed in 'unit'