version="1.0" xmlns:extra="urn:extra-functions">
language="VBScript" implements-prefix="extra">
Function ToMillimetres(inches) ToMillimetres = inches * 25.4 End
Function
select="format-number(extra:ToMillimetres(number(.)),
'0.00')" />
mm
Output:
2.0