convert

-->

convert quantity to given unit


Parameters

convert value :integer :floating :rational :quantity
        unit :string :word :literal :unit

Returns

  • :quantity

Examples

copy
print convert 3`m `cm ; 300.0 cm print 1`yd2 --> `m2 ; 0.836127 m²

Related