skip to main content
Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » Units » double Convert (double sourceValue, string sourceUnits, string targetUnits)
double Convert (double sourceValue, string sourceUnits, string targetUnits)
 
Convert a measurement from one set of units to another.
Parameters:
sourceValue
Source value.
sourceUnits
Source units.
targetUnits
Target units.
Returns:
A number.
Convert 2in to centimeters (cm).
<xsl:variable name="VarCentimeters" select="wwunits:Convert(wwunits:NumericPrefix('2in'), wwunits:UnitsSuffix('2in'), 'cm')" />
Was this helpful?
Last modified date: 10/14/2020