Skip to content

QuantityMagnitude

QuantityMagnitude(quantity)

returns the value of the quantity

QuantityMagnitude(quantity, unit)

returns the value of the quantity for the given unit

See

Examples

Convert from degrees to radians

>> QuantityMagnitude(Quantity(360, "deg"), "rad")
2*Pi

Implementation status

  • ✅ - full supported

Github