WOLFRAM SYSTEM MODELER
withoutUnitGet value of amount-of-quantity expressed in given unit |
SystemModel["SystemModelerExtras.Experimental.Units.withoutUnit"]
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.
value |
Type: Real Description: Amount-of-quantity |
---|---|
unit |
Type: String Description: Unit for extracting value of 'amount' |
numericalValue |
Type: Real Description: Value of 'amount' expressed in 'unit' |
---|