Previous Topic

Next Topic

Book Contents

Example of conversion rule for Centimeter unit

This example defines a unit called Centimeters. In this example, the Unit specified as the basis for conversion is Inches. Therefore, the conversion rule referenced in the Conversion to Base Rule property reflects the factor used to convert to inches from centimeters.

Property

Value

RefName

CENTIMETERS

Symbol

CM

Classification

Length

Base RefName

Inches

Conversion To Base Rule

CmToInches

Rule script text:

Data.Result=Data.Basevalue*.3937

Send Feedback