Skip to content

toQuantity

Category: Conversion

Converts the input value to a quantity

  • Return type: Quantity
'10 kg'.toQuantity()
42.toQuantity()
'98.6 degF'.toQuantity()