Quantity

Quantity

Quantity[ expr, unit] represents the value with a unit (e.g. meters, euros, minutes).

Usages

Quantity[ expr, unit]

Quantity[ expr, unit] represents the value expr with unit unit. The unit has to be within single quotes.

Example in rendered
The quantity € 2.40. Quantity[2.4, '€'] € 2.40

Quantity[ Text[ text ], unit ]

Quantity[ Text[ text ], unit ] represents the text text with unit unit. The unit has to be within single quotes.

Example in rendered
Write your answer in the form of € amount. Quantity[ Text[ amount ], 'euro' ] € amount