CONVERT

CONVERT function Converts a number from one unit to another.

CONVERT(number, from_unit, to_unit)

The CONVERT function syntax has the following arguments:

  • Number    Required. The value in from_units to convert.
  • From_unit    Required. The units for number.
  • To_unit    Required. The units for the result. CONVERT accepts the following text values (in quotation marks) for from_unit and to_unit.