toQuantity
toQuantity()
Section titled “toQuantity()”Category: Conversion
Converts the input value to a quantity
Signature
Section titled “Signature”- Return type:
Quantity
Examples
Section titled “Examples”'10 kg'.toQuantity()42.toQuantity()'98.6 degF'.toQuantity()